CS174
Chris Pollett
Aug. 30, 2010
AuthUserFile "/Volumes/Library/WebDocuments/library/.htpasswd" AuthGroupFile /dev/null AuthName library AuthType Basic <Limit GET POST> require valid-user </Limit>
Which of the following statements is true?
type/subtype.
HTTP method Domain 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 /index.shtml 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 In the above, Date:, Server:, Accept-Ranges:, etc are all response fields.
ISO HTML (HTML 4.01) which is specified using SGML a XHTML 1.0 Transitional XHTML 1.0 STRICT XHTML 1.1
<img src="my_picture.png" ></img> <!--this is okay. BTW, this is an example HTML comment --> <img src="my_picture.png" /> <!--this is also okay and is an abbreviation for the line above --> <img src="my_picture.png" > <!--not okay by itself --> <P>old style paragraph</P> <!--not okay --> <p><i>Hello</i></p> <!--okay --> <p><i>Hello</p></i> <!--not okay -->Open tags may have attributes. For example, src in the image tag above. The value of an attribute must be given in double quotes.