!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Lecture 12: CGI and Forms
Lecture 12

CGI

Ketan Mayer-Patel

University of North Carolina

Review of basic HTTP exchange

CGI

Server Requirements

CGI via GET and POST

CGI via GET URL Format

http://host/path/to/cgi/program?p1=v1&p2=v2&...&pN=vN

CGI via GET example

Parameter Encoding

Parsing CGI URLs Exercise

CGI requests via POST

GET vs. POST

HTML Forms

Input elements

<input> types

More <input> types

Submit Button

<textarea>

<select>

<option>

Form example

Lecture 12

CGI

Ketan Mayer-Patel

University of North Carolina

Review of basic HTTP exchange

CGI

Server Requirements

CGI via GET and POST

CGI via GET URL Format

http://host/path/to/cgi/program?p1=v1&p2=v2&...&pN=vN

CGI via GET example

Parameter Encoding

Parsing CGI URLs Exercise

CGI requests via POST

GET vs. POST

HTML Forms

Input elements

<input> types

More <input> types

Submit Button

<textarea>

<select>

<option>

Form example