CS174
Chris Pollett
Aug 24, 2022
AuthUserFile "/Volumes/Library/WebDocuments/library/.htpasswd" AuthGroupFile /dev/null AuthName library AuthType Basic <Limit GET POST> require valid-user </Limit>
type/subtype.
On Monday, we introduced HTTP, the protocol above TCP/IP for retrieving hypertext documents. I.e., web pages. We start today by going over in a little more detail how it works, and then switch to talking about HTML, the language that web pages are written in.
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