Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the HTTP header :host, :method, :path, :scheme, :version used for?

I have seen that Twitter and Facebook is using :host, :method, :path, :scheme, :version in their HTTP requests. I just wonder what they are used for?

enter image description here

My first guess is that they use custom headers to prevent CSRF attacks. But you only need one header to prevent CSRF attacks not 5.

like image 366
einstein Avatar asked Jan 06 '14 18:01

einstein


1 Answers

This might be SPDY or experimental HTTP/2.0. See http://greenbytes.de/tech/webdav/draft-ietf-httpbis-http2-09.html#HttpRequest

like image 67
Julian Reschke Avatar answered Oct 01 '22 19:10

Julian Reschke