Difference between Parameters and HTTP headers

≡放荡痞女 提交于 2019-12-14 03:52:54

问题


i'm wondering if someone can explain to me what is the difference between passing values in a HTTP request as parameters or Headers as in this example :

HTTP request :

GET /<api version>/<account> HTTP/1.1

Host: storage.swiftdrive.com
X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb

HTTP Response

HTTP/1.1 200 Ok

Date: Thu, 07 Jun 2010 18:57:07 GMT
Server: Apache
Content-Type: text/plain; charset=UTF-8
Content-Length: 32

Is the Host, X-Auth-Tiken in the request, and Date, Server, Content-Type, Content-Length on the response are parameters or HTTP headers if i use them in a 'curl' request ?

I'm working on a tool in weach i must specify if these values are parameters or Request Headers, and i don't how to do.

Thank's

来源:https://stackoverflow.com/questions/18208463/difference-between-parameters-and-http-headers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!