2. O U T L I N E
• History
• HTTP Basics
• Extended Topics
3. Background - Beyond text
• Hypertext is text which is not constrained to be linear. Hypertext is text
which contains links to other texts.
——《Computer Lib/Dream Machines》 Ted Nelson
13. HTTP Message Structure — Start Line
• Method
• OPTIONS/GET/HEAD/POST/PUT/DELETE/TRACE/CONNECT
• http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html
• URL
• URL is an impl of URI
• Status Code(Response)
• 1xx/2xx/3xx/4xx/5xx
• http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
• Reason-Phrase(Response)
• 200 OK, 404 Not Found,
• CRLF
• Carriage-Return r Line-Feed n
21. Content-Type — Internet media type
• image/audio/video/text/application/multipart
• http://en.wikipedia.org/wiki/Internet_media_type
• Application
• application/x-www-form-urlencoded
• Query String => Post Body
• application/xml, application/json
22. Content-Type — Multipart & MIME
• Multipart
• multipart/form-data
• MIME—Multi-Purpose Internet Mail Extensions
24. H t t p v e r s i o n s
• HTTP V 0.9(1991)
• Request-Response, only GET
• HTTP V 1.0(1992 draft,1996 release)
• Version Code, More Operations, Headers, Mime
• HTTP V 1.1(1992 draft,1999 release)
• Keep-alive, Proxy
• HTTP V 2.0(2014 draft,? release)
• Header Compression, Parallel Loading over single connection