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
0
votes
1 answer

re-direct SSL pages using header statement based on port

I found this in the header.php file of a e-commerce site. Is this better done in a .htaccess file. Also what would happen to any post parameters that get caught in the header statement. // flip between secure and non-secure pages $uri =…
bob's your brother
0
votes
1 answer

caching images in iis6

i try to make the images in my website read from the cache i try adding http heading like this but i still get in Yshow that it isn't caching. how can i check if a specific image has expire header?
user48228
  • 101
  • 1
0
votes
2 answers

how do I setup Apache's Content-Encoding Header?

When attempting to validate my site with the W3C validator, it returns the error, "Don't know how to decode Content-Encoding 'none'". Firebug confirms that my server is sending the header, "Content-Encoding: none". But I can't find any directive in…
Nick
  • 4,503
  • 29
  • 69
  • 97
0
votes
1 answer

retrieve file size from HTTP headers without downloading the file with CURL (no HEAD)

What i want to do is knowa file size and not download it. I've tried it with HEAD but the server doesn't respond curl_setopt($curl, CURLOPT_NOBODY, true); if i quit this , it will , but it will download the whole file... So if i could somehow tell…
PartySoft
  • 217
  • 1
  • 7
  • 12
0
votes
1 answer

Force http1.0 in IIS6

I've recently read in Steve Sounders book "Even Faster Web Sites" that we can increase the number of objects that older browsers like IE6 and 7 to download more than 2 objects at a time from a site by downgrading to http/1.0. Because this is only…
Jody Gilbert
0
votes
1 answer

CISCO ASA 5505 Base Licence - Ability to interpret http request headers (host headers)

Base licence configured CISCO ASA 5505 is not capable of routing based on interpretation of the inbound http request headers - affectively host header redirect - am I correct? If I am correct will an upgrade from the base licence help me - or is…
Klaptrap
  • 157
  • 12
0
votes
1 answer

Do all web caches understand the "Cache-Control" HTTP header?

I'd like to avoid the "Expires" header, and use "Cache-Control" only - or maybe the other way around. The headers will account for a significant percentage of my traffic, so I'd prefer not to "use both". AFAIK, the "Cache-Control" header was…
Chris Lercher
  • 4,152
  • 9
  • 35
  • 41
0
votes
2 answers

Apache Prepending Header Information to ALL FILES

We're in the middle of setting up new servers, and have been having some odd problems with Apache. Apache is prepending text that looks like this: $15plðI‚‚�E�ðA™@�@��yeÔ|~Ÿ²�PγZ" zS€�8i³�� ,ÀŠ{ÿBHTTP/1.1 200 OK Date: Mon, 02 Feb 2009 22:28:05…
Michael Robinson
  • 428
  • 2
  • 7
  • 20
0
votes
1 answer

Suppress PHP Headers running cgi PHP from Ruby

I originally posted this on StackOverflow and it was suggested that I try posting this here because, "It might be something like the configuration in CGI is different than the configuration for your user." Having said that, here is my original…
Matthew J Morrison
  • 165
  • 1
  • 1
  • 8
0
votes
2 answers

Configure Apache with a htaccess file to strip out unneeded respond-headers

For ultimate speed, I want my Apache server strip unneeded headers from the response. Currently, the headers looks like this (excluding the status header): Connection:Keep-Alive Content-Length:200 Content-Type:text/html Date:Sat, 15 May 2010…
user42235
0
votes
1 answer

Temporarily Utilizing 304 Header on Apache for Crawlers

I have a client who has a hosting arrangement with 400 customer sites all hosted through SuPHP in CGI mode on Apache. The sysop is now gone and the client is calling on me for rolling out a new PHP thing. Trouble is -- server load is very high right…
ServerChecker
  • 1,518
  • 2
  • 14
  • 35
0
votes
2 answers

What could cause a WMV to not play to completion in a browser?

A realtor has had videos created for a community she is selling homes for, the people who made the videos gave them to us in WMV format. I can play these videos without any problem in Windows Media Player, VLC, and Quicktime (via Flip4Mac). I can…
Ty W
  • 101
  • 4
0
votes
2 answers

Apache/httpd 'Header set Server' is ignored/overridden

I am using this in a VirtualHost Header set ProcessingTime "%D" Header set Server "Apache 2.4" I can see that the ProcessingTime is set happily, but Server is set by some default, which tells too much…
BairDev
  • 125
  • 1
  • 1
  • 8
0
votes
0 answers

Serving webpage in different language based on HTTP headers, using Apache negotiation module - shows dir listing only

I would like to configure Apache, such that when we send a request with a given language header, the server should send us back the right version. For example, I have index.eng.html and index.de.html. Based on the HTTP header, server should send me…
mazix
  • 65
  • 1
  • 8
0
votes
0 answers

How can I add the (virtual) ServerName value as customer Header in Apache2?

I would like to get the ServerName on the HTTP response of Apache in a custom header. Something like this: Header Set X-VirtualServerName "%{SERVERNAME}" Please consider this string can be different from the "host" declared in the request by the…
Tobia
  • 1,272
  • 9
  • 41
  • 81