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
Are Host
and X-Auth-Token
on the request, as well as Date
, Server
, Content-Type
, and Content-Length
on the response, parameters or HTTP headers if I use them in a curl
request?
I'm working on a tool in which I must specify if these values are parameters or Request Headers, and I don't how to do that.
Thanks