问题
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