SlideShare una empresa de Scribd logo
1 de 25
Introduction to HTTP
History, Knowledge and Usages
code4crafter@gmail.com
2015.4.1
O U T L I N E
• History
• HTTP Basics
• Extended Topics
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
W h a t i s “ h y p e r ” ?
P r o j e c t X a n a d u ( 1 9 6 0 - 2 0 1 4 ? )
The Birth of Web 1989
• Tim Beners-Lee @CERN
T h e F i r s t B r o w s e r
• “WorldWideWeb”(Nexus)
The First Web Server
• CERN httpd on NeXT
The First Website
• http://info.cern.ch/hypertext/WWW/TheProject.html
WWW and Internet
O U T L I N E
• History
• HTTP Basics
• Extended Topics
HTTP Message Structure
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
HTTP Message Structure — Headers
• Request Headers
• Accept headers:
• Accept, Accept-Charset, Accept-Encoding , Accept-Language
• Conditional request headers:
• If-Match, If-None-Match, If-Modified-Since, If-Unmodified-Since
• Request security headers:
• Authorization, Cookie, Cookie2
• Proxy request headers:
• Max-Forwards, Proxy-Authorization, Proxy-Connection
HTTP Message Structure — Headers
• Response Headers
• Negotiation headers:
• Accept-Ranges, Vary
• Response security headers:
• Proxy-Authenticate, Set-Cookie, Set-Cookie2, WWW-Authenticate, Access-Control-Allow-Origin
• Content cache headers:
• ETag, Last-Modified, Expires, Cache-Control
HTTP Message Structure — Body
• Content Headers
• Content-Type
• Content-Type: application/x-www-form-urlencoded
• Content-Type: text/html; charset=utf-8
• Content-Length
• Content-Encoding
• Content-Range
• Content-Language
O U T L I N E
• History
• HTTP Basics
• Extended Topics
Persistent Connection
• Why Keep-Alive
• The TCP connection setup handshake
• TCP slow-start congestion control
• Nagle’s Algorithm and TCP_NODELAY
• HTTP 1.0
• Connection: Keep-Alive
• HTTP 1.1
• By Default Keep Alive
• To Close: Connection: Close
Caching
• Browser Caching
• Document Expires?
• Cache-Control: max-age=604800
• Expire: Tue, 07 Apr 2015 15:26:18 GMT
Caching — Revalidation with Server
• Date • Tag
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
Content-Type — Multipart & MIME
• Multipart
• multipart/form-data
• MIME—Multi-Purpose Internet Mail Extensions
Range
• Response
• Content-Length/ Accept-Ranges
• Request
• Range
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
E n d
• Thanks!

Más contenido relacionado

La actualidad más candente

Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
johnny19910916
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
rahul kundu
 

La actualidad más candente (20)

Http
HttpHttp
Http
 
What's up with HTTP?
What's up with HTTP?What's up with HTTP?
What's up with HTTP?
 
Hypertext transfer protocol (http)
Hypertext transfer protocol (http)Hypertext transfer protocol (http)
Hypertext transfer protocol (http)
 
Http - All you need to know
Http - All you need to knowHttp - All you need to know
Http - All you need to know
 
21 HTTP Protocol #burningkeyboards
21 HTTP Protocol #burningkeyboards21 HTTP Protocol #burningkeyboards
21 HTTP Protocol #burningkeyboards
 
HTTP
HTTPHTTP
HTTP
 
HTTP
HTTPHTTP
HTTP
 
HTTP Presentation
HTTP Presentation HTTP Presentation
HTTP Presentation
 
Http Protocol
Http ProtocolHttp Protocol
Http Protocol
 
HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)HyperText Transfer Protocol (HTTP)
HyperText Transfer Protocol (HTTP)
 
HTTP
HTTPHTTP
HTTP
 
Http-protocol
Http-protocolHttp-protocol
Http-protocol
 
HTTP fundamentals for developers
HTTP fundamentals for developersHTTP fundamentals for developers
HTTP fundamentals for developers
 
HTTP vs HTTPS, Do You Really Need HTTPS?
HTTP vs HTTPS, Do You Really Need HTTPS?HTTP vs HTTPS, Do You Really Need HTTPS?
HTTP vs HTTPS, Do You Really Need HTTPS?
 
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
Hypertext transfer protocol and hypertext transfer protocol secure(HTTP and H...
 
Introducing HTTP/2
Introducing HTTP/2Introducing HTTP/2
Introducing HTTP/2
 
Get and post methods
Get and post methodsGet and post methods
Get and post methods
 
What HTTP/2.0 Will Do For You
What HTTP/2.0 Will Do For YouWhat HTTP/2.0 Will Do For You
What HTTP/2.0 Will Do For You
 
HTTPS
HTTPSHTTPS
HTTPS
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 

Destacado

Igor Cernopolc - Http authentication in automated testing - presentation
Igor Cernopolc - Http authentication in automated testing - presentationIgor Cernopolc - Http authentication in automated testing - presentation
Igor Cernopolc - Http authentication in automated testing - presentation
Codecamp Romania
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocol
ponduse
 
Internet access via cable tv network ppt
Internet access via cable tv network pptInternet access via cable tv network ppt
Internet access via cable tv network ppt
Upender Upr
 
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
SlideShare
 

Destacado (15)

Session hijacking
Session hijackingSession hijacking
Session hijacking
 
HTTP Basics
HTTP BasicsHTTP Basics
HTTP Basics
 
An Introduction to HTTP
An Introduction to HTTPAn Introduction to HTTP
An Introduction to HTTP
 
Access Control for HTTP Operations on Linked Data
Access Control for HTTP Operations on Linked DataAccess Control for HTTP Operations on Linked Data
Access Control for HTTP Operations on Linked Data
 
Igor Cernopolc - Http authentication in automated testing - presentation
Igor Cernopolc - Http authentication in automated testing - presentationIgor Cernopolc - Http authentication in automated testing - presentation
Igor Cernopolc - Http authentication in automated testing - presentation
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 
Hack session for NYTimes Dialect Map Visualization( developed by R Shiny)
 Hack session for NYTimes Dialect Map Visualization( developed by R Shiny) Hack session for NYTimes Dialect Map Visualization( developed by R Shiny)
Hack session for NYTimes Dialect Map Visualization( developed by R Shiny)
 
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogicHTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
HTTP Session Replication with Oracle Coherence, GlassFish, WebLogic
 
Working with Cookies in NodeJS
Working with Cookies in NodeJSWorking with Cookies in NodeJS
Working with Cookies in NodeJS
 
Http Vs Https .
Http Vs Https . Http Vs Https .
Http Vs Https .
 
HyperText Transfer Protocol
HyperText Transfer ProtocolHyperText Transfer Protocol
HyperText Transfer Protocol
 
ASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP FundamentalsASP.NET Web API and HTTP Fundamentals
ASP.NET Web API and HTTP Fundamentals
 
Internet access via cable tv network ppt
Internet access via cable tv network pptInternet access via cable tv network ppt
Internet access via cable tv network ppt
 
Network security
Network securityNetwork security
Network security
 
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
A Guide to SlideShare Analytics - Excerpts from Hubspot's Step by Step Guide ...
 

Similar a Introduction to HTTP

Internet tools and services
Internet tools and servicesInternet tools and services
Internet tools and services
learnt
 
Hyper text transport protocol
Hyper text transport protocolHyper text transport protocol
Hyper text transport protocol
HarshithaAllu
 

Similar a Introduction to HTTP (20)

www | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorialwww | HTTP | HTML - Tutorial
www | HTTP | HTML - Tutorial
 
application of http.pptx
application of http.pptxapplication of http.pptx
application of http.pptx
 
Web technologies-course 01.pptx
Web technologies-course 01.pptxWeb technologies-course 01.pptx
Web technologies-course 01.pptx
 
Web
WebWeb
Web
 
Class 1 - World Wide Web Introduction
Class 1 - World Wide Web IntroductionClass 1 - World Wide Web Introduction
Class 1 - World Wide Web Introduction
 
An Introduction To World Wide Web
An Introduction To World Wide WebAn Introduction To World Wide Web
An Introduction To World Wide Web
 
Internet tools and services
Internet tools and servicesInternet tools and services
Internet tools and services
 
Browser
BrowserBrowser
Browser
 
world wide web
world wide webworld wide web
world wide web
 
HTTP/2: What's new?
HTTP/2: What's new? HTTP/2: What's new?
HTTP/2: What's new?
 
Web services
Web servicesWeb services
Web services
 
Lecture 6- http
Lecture  6- httpLecture  6- http
Lecture 6- http
 
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
HTTP2 in action - Piet Van Dongen - Codemotion Amsterdam 2017
 
Web technology Unit I Part C
Web technology Unit I  Part CWeb technology Unit I  Part C
Web technology Unit I Part C
 
WT_TOTAL.pdf
WT_TOTAL.pdfWT_TOTAL.pdf
WT_TOTAL.pdf
 
Hyper_Text_Transfer_Protocol_Presentation_
Hyper_Text_Transfer_Protocol_Presentation_Hyper_Text_Transfer_Protocol_Presentation_
Hyper_Text_Transfer_Protocol_Presentation_
 
Hyper text transport protocol
Hyper text transport protocolHyper text transport protocol
Hyper text transport protocol
 
Http2 Security Perspective
Http2 Security PerspectiveHttp2 Security Perspective
Http2 Security Perspective
 
IP UNIT 1.pptx
IP UNIT 1.pptxIP UNIT 1.pptx
IP UNIT 1.pptx
 
Http VS. Https
Http VS. HttpsHttp VS. Https
Http VS. Https
 

Último

AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
ellan12
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
sexy call girls service in goa
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Sheetaleventcompany
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
soniya singh
 

Último (20)

WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptxAWS Community DAY Albertini-Ellan Cloud Security (1).pptx
AWS Community DAY Albertini-Ellan Cloud Security (1).pptx
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort ServiceEnjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
Enjoy Night⚡Call Girls Dlf City Phase 3 Gurgaon >༒8448380779 Escort Service
 
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark WebGDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
GDG Cloud Southlake 32: Kyle Hettinger: Demystifying the Dark Web
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Sukhdev Vihar Delhi 💯Call Us 🔝8264348440🔝
 
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
Ganeshkhind ! Call Girls Pune - 450+ Call Girl Cash Payment 8005736733 Neha T...
 

Introduction to HTTP

  • 1. Introduction to HTTP History, Knowledge and Usages code4crafter@gmail.com 2015.4.1
  • 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
  • 4. W h a t i s “ h y p e r ” ?
  • 5. P r o j e c t X a n a d u ( 1 9 6 0 - 2 0 1 4 ? )
  • 6. The Birth of Web 1989 • Tim Beners-Lee @CERN
  • 7. T h e F i r s t B r o w s e r • “WorldWideWeb”(Nexus)
  • 8. The First Web Server • CERN httpd on NeXT
  • 9. The First Website • http://info.cern.ch/hypertext/WWW/TheProject.html
  • 11. O U T L I N E • History • HTTP Basics • Extended Topics
  • 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
  • 14. HTTP Message Structure — Headers • Request Headers • Accept headers: • Accept, Accept-Charset, Accept-Encoding , Accept-Language • Conditional request headers: • If-Match, If-None-Match, If-Modified-Since, If-Unmodified-Since • Request security headers: • Authorization, Cookie, Cookie2 • Proxy request headers: • Max-Forwards, Proxy-Authorization, Proxy-Connection
  • 15. HTTP Message Structure — Headers • Response Headers • Negotiation headers: • Accept-Ranges, Vary • Response security headers: • Proxy-Authenticate, Set-Cookie, Set-Cookie2, WWW-Authenticate, Access-Control-Allow-Origin • Content cache headers: • ETag, Last-Modified, Expires, Cache-Control
  • 16. HTTP Message Structure — Body • Content Headers • Content-Type • Content-Type: application/x-www-form-urlencoded • Content-Type: text/html; charset=utf-8 • Content-Length • Content-Encoding • Content-Range • Content-Language
  • 17. O U T L I N E • History • HTTP Basics • Extended Topics
  • 18. Persistent Connection • Why Keep-Alive • The TCP connection setup handshake • TCP slow-start congestion control • Nagle’s Algorithm and TCP_NODELAY • HTTP 1.0 • Connection: Keep-Alive • HTTP 1.1 • By Default Keep Alive • To Close: Connection: Close
  • 19. Caching • Browser Caching • Document Expires? • Cache-Control: max-age=604800 • Expire: Tue, 07 Apr 2015 15:26:18 GMT
  • 20. Caching — Revalidation with Server • Date • Tag
  • 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
  • 23. Range • Response • Content-Length/ Accept-Ranges • Request • Range
  • 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
  • 25. E n d • Thanks!

Notas del editor

  1. http://www.xanadu.com/
  2. http://en.wikipedia.org/wiki/Tim_Berners-Lee http://home.web.cern.ch/topics/birth-web
  3. http://en.wikipedia.org/wiki/Tim_Berners-Lee
  4. 引用:http://en.wikipedia.org/wiki/World_Wide_Web
  5. http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html 图片来自:《HTTP权威指南》 HTTP: The Definitive Guide
  6. http://www.w3.org/Protocols/rfc2616/rfc2616.html => rfc 7230-7237 https://tools.ietf.org/html/rfc7237 <scheme>://<user>:<password>@<host>:<port>/<path>;<params>? <query>#<frag> http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
  7. http://en.wikipedia.org/wiki/List_of_HTTP_header_fields http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
  8. http://en.wikipedia.org/wiki/List_of_HTTP_header_fields http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
  9. http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
  10. http://www.w3.org/Protocols/rfc2616/rfc2616.html http://tools.ietf.org/html/rfc7234
  11. http://en.wikipedia.org/wiki/Internet_media_type https://tools.ietf.org/html/rfc7231
  12. http://en.wikipedia.org/wiki/MIME http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1
  13. http://tools.ietf.org/html/rfc7233 curl -I http://t1.s2.dpfile.com/pc/mc/40b121f4c768759de07b2320b67e5565(640x1024)/thumb.jpg curl -H”Range:bytes=0-30224" http://t1.s2.dpfile.com/pc/mc/40b121f4c768759de07b2320b67e5565\(640x1024\)/thumb.jpg curl -H”Range:bytes=30225-“ http://t1.s2.dpfile.com/pc/mc/40b121f4c768759de07b2320b67e5565\(640x1024\)/thumb.jpg
  14. http://www.w3.org/Protocols/HTTP/AsImplemented.html 0.9 http://tools.ietf.org/html/rfc1945 1.0