Questions tagged [http-headers]

HTTP header fields are components of the message header of requests and responses in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction.

HTTP header fields are components of the message header of requests and responses in the Hypertext Transfer Protocol (HTTP). They define the operating parameters of an HTTP transaction.

Refer to RFC 2616

624 questions
3
votes
1 answer

Disable compression on SSL/TLS connections in Apache < 2.2.16 using mod_header

Because of CRIME, as I understand, compression on SSL connections have to be turned off. In newer versions of apache this can be done with a newly introduced directive SSLCompression off, in older versions this is not possible (in Debian before…
3
votes
2 answers

nginx conditional Accept header

Some mobile devices send the following incorrect requests to our servers : GET / HTTP/1.0 Accept: User-Agent : xxx The empty Accept header causes our Ruby on Rails server to throw back a 500 error. In Apache, the following directive allows us to…
manu_v
  • 133
  • 1
  • 5
3
votes
1 answer

server_tokens off but still publishing them

I added server_tokens off; to http{} section of /etc/nginx/nginx.conf file and restarted nginx with service nginx restart command. but server still publishing the server tokens when responsing to request. I also checked under the…
xecute
  • 111
  • 1
  • 9
3
votes
3 answers

why i cannot download jdk from oracle web site directly without AuthParam?

that is download with the following command, why it fails to download that file? wget http://download.oracle.com/otn-pub/java/jdk/6u35-b10/jdk-6u35-linux-i586.bin the following command works, but that AuthParam may not work after a while, why?…
giantforest
  • 239
  • 1
  • 4
  • 15
3
votes
2 answers

Using curl to request URL that redirects to relative URL with anchor tag

I'm using curl to request a URL that redirects to a different URL using a Location: line like: Location:/path/to/resource#name As I understand it, that line in the redirect response is invalid per the HTTP specifications, so the overall curl call…
jrdioko
  • 567
  • 5
  • 9
  • 18
3
votes
2 answers

What sort of magic is my ISP doing?

While trying to setup OpenDNS, and failing to make website filtering actually work, I realized my ISP is doing something nefarious with all HTTP requests. To make a long story short, if there's a Host: header, it doesn't matter what IP address I…
imgx64
  • 235
  • 3
  • 10
3
votes
1 answer

nginx + @font-face + Firefox / IE9

Just transferred my site from a shared hosting to Linode's VPS, and I'm also completely new to nginx, so please don't be harsh if I missed something evident ^^ I've got my WordPress site running pretty well on nginx & MaxCDN, but my @font-face…
Philip Seyfi
  • 131
  • 7
3
votes
3 answers

How to filter Varnish logs based on XID?

I'm running into infrequent 503 errors which appear hard to pinpoint. Varnishlog is driving me mad, since I can't seem to get the information I want out of it. I'd like to see both the client- and backend-communications as seen by Varnish. I thought…
Martijn Heemels
  • 7,728
  • 7
  • 40
  • 64
3
votes
3 answers

IIS cache control header settings

I'm currently working on a website that is accessed over https. We have recently come across a problem where we are unable to view .pdf files or any other type of file that is sent as an attachment (Content-Disposition:attachment). According to…
a_m0d
  • 155
  • 1
  • 3
  • 13
3
votes
1 answer

nginx status code 200 and 304

I'm using nginx + passenger. I'm trying to understand the nginx response 200 and 304. What does this both means? Sometimes, it responses back in 304 and others only 200. Reading the YUI blog, it seems browser needs the header "Last-Modified" to…
Chamnap
  • 795
  • 3
  • 9
  • 13
3
votes
1 answer

only http header communication? - please explain

The screen shot below is made using firebug. The firefox <-> web server communication captured happened after clicking login button. But I cannot see any redirection in my firefox. Does that mean that firefox and web server communicated only on http…
Radek
  • 1,153
  • 4
  • 26
  • 39
3
votes
0 answers

relayd to match http request according to path and change headers

I have, on OpenBSD, relayd in front of a website. The thing redirect static requests to httpd and dynamic requests to an app running on localhost port 9000 (I wish to avoid revealing the name so I can write a huge blog article about the solution,…
22decembre
  • 131
  • 1
3
votes
3 answers

editing nginx http headers

we are trying to migrate from apache to nginx, and we have a setup where the proxy server receives an http header, modifies it and forwards it to the backend. This can easily be done with apache in the following way: Header edit*…
MarceloPrego
  • 46
  • 1
  • 3
3
votes
1 answer

nginx - proxy_pass on user_agent

I have a SPA site, where I need to load the appropriate tags for each subpage, but it is not that easy from the subpages themselves so I made a separate address where Facebook or Twitter bots can download the appropriate OpenGraph values. It…
Damian
  • 133
  • 2
  • 6
2
votes
3 answers

How to keep Authentication header with redirect using NGINX ingress annotations

I have an nginx ingress controller for my kubernetes cluster. I have a need to add a permanent redirect to an ingress which I can successfully do with nginx.ingress.kubernetes.io/permanent-redirect: "http://www.example.com" This works great, except…
G. Ball
  • 131
  • 1
  • 2