CS174
Chris Pollett
Feb 1, 2017
http://peano.mynetwork.org/index.htmlcalled a URL.
AuthUserFile "/Volumes/Library/WebDocuments/library/.htpasswd" AuthGroupFile /dev/null AuthName library AuthType Basic <Limit GET POST> require valid-user </Limit>
type/subtype.
HTTP method path part of URL HTTP version Header fields Blank line Message Body
For example, at a Unix prompt trying typing: telnet www.cs.sjsu.edu 80 GET / HTTP/1.0 <blank line>
GET --- request contents of specified document HEAD --- request header contents of specified document POST --- Executes the specified document, using the enclosed data PUT --- replaces the specified document with the enclosed data DELETE ---deletes the specified document.
GET /respond.html HTTP/1.1 Host: blanca.uccs.edu Accept: text/* Accept: image/gif
Status line Response header fields Blank line Response body
HTTP/1.1 200 OK
HTTP/1.1 200 OK Date: Mon, 28 Aug 2006 19:09:45 GMT Server: Apache/2.2.2 (Fedora) Accept-Ranges: bytes Connection: close Content-Type: text/html Message Body