HTTP requests and querystring vs headers?
http, rest
Solution
Refer a similar question Adding Custom HTTP Headers
Why would I prefer query string over http-header fields?
- It is easy
- I don't need any additional API
- It is also recommended in HTTP-RFC to "follow common-forms" when it comes to header fields.
Problem
I'm trying to understand the difference between querystrings and headers. Where do you use each? Query strings might be more useful in making URLs human readable I suppose, but other than that, wouldn't it be easier to just embed that in your own custom HTTP header (side question, but how this relate to cookies?)? What's the distinction between the two?