Top "Http-headers" questions

In the Hypertext Transfer Protocol (HTTP), HTTP header fields contain the operating parameters of an HTTP request or response.

Real life usage of the X-Forwarded-Host header?

I've found some interesting reading on the X-Forwarded-* headers, including the Reverse Proxy Request Headers section in the Apache documentation, …

http proxy http-headers
Spring MVC @RequestMapping headers can accept only one value?

This will work: @RequestMapping(value = "/test", method = RequestMethod.POST, headers = {"content-type=application/json"}) { ....... } If I add another value to it …

spring-mvc http-headers content-type
HTTP request header: UserAgent variable

When sending a HTTP request, IE sends the User-Agent variable to the server. A possible value (as seen by the …

http-headers user-agent
How do you send a HEAD HTTP request in Python 2?

What I'm trying to do here is get the headers of a given URL so I can determine the MIME …

python python-2.7 http http-headers content-type
When looking at the differences between X-Auth-Token vs Authorization headers, which is preferred?

What is the difference between the two headers below? Which one is preferred? X-Auth-Token : dadas123sad12 Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

http http-headers spring-restcontroller
How to set response filename without forcing "save as" dialog

I am returning a stream in some response setting the appropriate content-type header. The behavior I'm looking for is this: …

http http-headers httpwebresponse httpresponse content-disposition
How to prevent my site page to be loaded via 3rd party site frame of iFrame

How can I find out that my page is embedded as a frame to other site during page loading? I …

php python iframe http-headers frame
Why is Cache-Control attribute sent in request header (client to server)?

After reading about the Cache-Control field of the HTTP header, I understand that the Cache-Control field in the HTTP response …

http http-headers
What is q=0.5 in Accept* HTTP headers?

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 …

http http-headers
using header() to rewrite filename in URL for dynamic pdf

I have a php script that generates a pdf report. When we go to save the pdf document, the filename …

php pdf mod-rewrite rename http-headers