COMP 206 Lecture Notes - Lecture 32: C Standard Library, Command History, A.Out
Document Summary
Cgi technicals: code an image filter by connecting to c library, implement a command history function, implement a gci filtering stdin of the program is connected to the network (specialized version of a pipe/redirection) Transmits information from the page including data from forms. Program runs based on input and produces output that is returned to the network/server, and this must generate the next page environment variables pass additional information. Must reside in a web visible directory. Web servers require that it ends in . cgi. Use cgi. fieldstorage class to parse query (decoding, handles get and post) Generate http + html output (http is the way to returning data, Original html file displayed in browser, leads to first call of cgi script. Script outputs html for display that includes a form field linking to a cgi script. This page is displayed in the browser, user reacts.