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.
0
votes
0answers
11 views
IIS redirect to subdirectory is having issues with trailing slashes
HTTP redirect in IIS is not working as expected.
I have two directories at the root of a site. One is a full directory name, and one is shorthand.
I want the short directory name to redirect to the ...
0
votes
1answer
40 views
Can we configure HTTP response code headers?
We're stumped. We're getting a new header in our Apache httpd + Passenger web server we didn't expect. We have a sensitive web client reading this we cannot modify at this time.
Can we modify this ...
-1
votes
0answers
26 views
Can I block a request based on HTTP-VIA and HTTP_X_FORWARDED_FOR?
I have the problem where a specific anti-virus is following all my tracking URLs in emails. The Logging of these requests based on their IP's result in two extra headers being passed through:
...
0
votes
1answer
40 views
GoAccess analytics and HTTP Referer
This is a high-level question regarding using goaccess as a tool for website analytics. I have it set up on an nginx server and parsing the logs just fine, but it seems that many requests to my own ...
0
votes
2answers
30 views
Human readable format for http headers with tcpdump
I would like to view the HTTP headers sent from Apache (listening on port 80) to Tomcat (on port 4080) in a Linux machine.
According to Wikipedia,
Header fields are colon-separated name-value ...
0
votes
0answers
22 views
Apache/mod_expires adding caching headers to POST responses
I have Apache 2.2.3 serving up (mostly) php content, and am adding headers to manage caching using mod_expires. This works well overall, but I've noticed that the value of ExpiresDefault is being used ...
1
vote
1answer
38 views
Why does this HTTP header configuration cause browsers to always perform If-Modified-Since requests?
On our server, we have configured http response headers as follows:
Cache-Control:max-age=28800, must-revalidate # (8 hours)
Connection:Keep-Alive
Date:Wed, 24 Apr 2013 21:36:19 GMT
...
0
votes
0answers
17 views
which is the correct behavior with SSI and 304-not modified
What is the correct behavior of SSI when responding to an If-Modified-Since in the request header? Is there a correct behavior? If the content is dynamic, would a 304-Not Modified ever be ...
1
vote
1answer
47 views
Amazon ELB not Passing “X-Forwarded-For” to IIS
ELB is setup to accept public HTTPS (443) connections and send them on as HTTP (80) to the EC2 instances.
The EC2 instances run an IIS app that needs to know the user's IP address. According to ...
0
votes
0answers
33 views
apache is caching my server root improperly … how can I stop it [closed]
First the problem ...
I have a php application which has dynamic data. Apache is behaving strangely when accessing the root of the app.
If I access the root by specifying the default file explicitly ...
0
votes
0answers
66 views
Why does nginx not send the Content-Length header when the request is HEAD?
I am using CURL to test HEAD requests to my nginx server. The file being served is a simple PHP file.
If I use GET:
$ curl -XGET http://test.com/phpinfo.php -I
HTTP/1.1 200 OK
Date: Tue, 09 Apr 2013 ...
2
votes
2answers
75 views
Can I get Apache 2.2 to set a particular response header if some other response header is missing
I have an Apache 2.2 server running mod_proxy. We had a scenario where a response came through from the origin corrupted, it didn't have any content-type or cache-control headers. This meant that ...
-1
votes
1answer
51 views
Do I need to handle chunked HTTP requests if I only work with GET requests? [closed]
I am writing a Netty server that handles HTTP GET requests from the browser to serve scripts or pixels.
My understanding is that there is no reason why I would receive chunked requests as all I ...
1
vote
0answers
38 views
nginx: how to serve files in gzip format when client accepts “Accept-Encoding: gzip” and inflated otherwise?
I have a folder full of .gz files and would like to serve them transparently inflated if requested by a client that does not send Accept-Encoding: gzip in the request and as-is (gzip'd) otherwise.
I ...
0
votes
1answer
33 views
How respect acept: text/plain with nginx? [duplicate]
In http header there is a field named accept, so client can specify prefered format.
How can I configure nginx to return markdown page in case of plain text request and processed via some markdown ...
1
vote
0answers
361 views
IE 10 HTTP 401 Error on AJAX POST
I've been chasing down an issue and decided to make the most basic reproduction of the issue possible in hopes that a simplified question will help me resolve this.
I am receiving a 401 error when ...
0
votes
0answers
44 views
Where do I specifiy custom HTTP range-header entities and the necessary logic behind an entitiy?
I have a large JSON file which consists of xyz records. I'm looking for a way to retrieve parts of the file and have been reading the http-specs on how to define HTTP range-headers in Apache.
The ...
0
votes
1answer
89 views
nginx ssl proxy for one hostname only
I want nginx to serve as a ssl proxy but for host: "ssl.example.com"
at the same time I want nginx to serve "nginx is ok" website for host: "ssl-check.example.com" (this is just example, please don't ...
0
votes
0answers
25 views
Apache rendering page as plain/text with leading 0
I'm having an intermittent issue with an Apache Server( 2.0.44 ) rendering output as plain/text. The header has the correct Content type, but on occasion the Header and page content is output as ...
0
votes
0answers
46 views
Disable Server Header from Sonicwall SSL-VPN
Is there a way I can configure a Sonicwall SSL-VPN Server to not send a server header?
1
vote
1answer
91 views
IIS7 Response header exposes server information when post request is incomplete
IIS reveals "Server: Microsoft-HTTPAPI/2.0" in the response header when a invalid Post request is made. e.g. content-length is not included in the header. The Response returned also says HTTP/1.1 411 ...
0
votes
0answers
162 views
Oracle UPK: HTTP request is unauthorized with client scheme 'Negotiate'
This is my first post. I have searched high and low for a possible solution to this, but so far have come up empty. Oracle support also has not been very helpful (yet anyway).
Below is an excerpt ...
0
votes
1answer
126 views
Set Access-Control-Allow-Origin in nginx using wildcard domain
With nginx can I specify Access-Control-Allow-Origin using a wildcard like *.mydomain.com?
Would it look like:
add_header Access-Control-Allow-Origin *.mydomain.com;
Thanks.
1
vote
2answers
157 views
nginx redirection cycle with X-Accel-Redirect
Trying to get nginx to work with the X-Accel-Redirect header. I'm getting this error:
*24 rewrite or internal redirection cycle while internally redirecting to "/app/index.php", client: 127.0.0.1, ...
-1
votes
1answer
151 views
Lowercase headers [closed]
One thing I've noticed about CloudFlare and Google's web servers are that they both use lowercase response headers. Is this just for looks, or does it actually provide a performance increase? I'm ...
-1
votes
1answer
50 views
Why is there a redundancy in HTTP status headers? [closed]
I'd like to learn something from the design of HTTP protocol - why is there, for example, "Not found", following the "404" code? Wouldn't the number itself be sufficient?
1
vote
1answer
463 views
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 ...
1
vote
1answer
68 views
How to deal with downtime of web server without losing SEO ranking?
I am having a website which I'm planning to keep in maintenance mode for about 2 days without losing SEO ranking. According to Google blog post, we can do this by having a 503 Service Temporarily ...
0
votes
1answer
203 views
Why is IIS 7.5 seeing some requests as HTTP/1.0?
While trying to work out why Static File Compression wasn't working on one of our IIS servers, the error was coming back as "NO_COMPRESSION_10" which translates to:
Server not configured to ...
0
votes
0answers
126 views
Cache Control Headers with IIS 7.5
I'm trying to wrap my head around client side (web browser) caching and how it works in relation to IIS 7.5 cache control headers.
In particular:
If we want to force clients to reload cached ...
0
votes
0answers
57 views
Configuring virtual-hosts (headers) for SCM manager on IIS 7
I am using SCM manager for subversion. I have already installed it and had it running fine on a LAMP setup, however, the production version is going on IIS.
The entire application is in a series of ...
0
votes
0answers
49 views
HTTP Request with Auth in Headers
I am writing a little technical explanation for our B2B customers that explains our transport & authentication options for web services so they can choose the most appropriate for their system.
...
1
vote
0answers
119 views
Why pragma: no-cache does not work anymore on IE?
On my employer web server, we have 200+ PHP applications with this kind of code to allow download of a file :
header('Content-Disposition: attachment; filename="file.pdf"');
header('Expires: 0');
...
-2
votes
1answer
79 views
how to PUT a fle with perl LWP [closed]
I've recently discovered LWP and while the documetation is pretty clear on some things, I'm also finding it lacking in others. Perhaps the problem is http is so extensive you can't document ...
2
votes
2answers
151 views
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.
...
0
votes
1answer
118 views
Have set Expiration time: Still getting “Query string present but no explicit expiration time”
I have one local Apache instance running with mod_cache (+ disk & mem) enabled, and it seems to cache content from my appserver fine. My app server sets Expiration headers and Last-modified. Yet, ...
1
vote
1answer
67 views
Delivering partial content to iTunes podcast [closed]
We've noticed that our Podcasts, when being streamed through iTunes, are unable to "seek" properly. Any time you click on the timeline, it restarts from the beginning.
I'm pretty sure we're ...
0
votes
1answer
103 views
nginx rule to capture header and append value as query string
I have an interesting problem I need to solve in nginx: one of the sites I'm building receives inbound traffic on port 80 (and only port 80) which may have a certain header set in the request. If this ...
0
votes
1answer
180 views
Apache returns HTTP 206 for GET /file.mp3
I am making a get request to an SSL enabled site on apache (so wireshark isn't giving me anything to useful).
In my Apache SSL access log I see the following entry:
1.2.3.4 - my.username ...
0
votes
0answers
62 views
How to change HTTP_REFERER using perl?
I tried to change log format and change HTTP_REFERER using perl to change browser's referrer like below.
[pattern1]
Log Format : %{HTTP_REFERER}o
perl : $ENV{'HTTP_REFERER'} = ...
2
votes
1answer
255 views
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 ...
1
vote
1answer
99 views
Blocking HEAD, DELETE, etc. with lighttpd
So I have lighttpd installed and the site it runs only needs to respond to GET requests.
I was wondering how I can return 405 responses with Allow: GET headers to anything but GET requests using ...
2
votes
1answer
378 views
LiteSpeed enable Access-Control-Allow-Origin (no response header on CORS request)
Seriously, I can't find a single page discussing this for litespeed.
Using this format in the htaccess "Header set Access-Control-Allow-Origin http://aSite.com" (and https) sends the setting in the ...
1
vote
0answers
152 views
Load Balancing with haproxy and http-send-name-header Host
I ran into the following problem:
tldr;
When dynamically rewriting the HTTP Host header with http-send-name-header Host haproxy seems to mess up HTTP Response headers.
Doing so works fine when using ...
2
votes
1answer
332 views
Stop squid caching 302 and 307 with deny_info
TLDR: 302, 307 and Error pages are being cached. Need to force a refresh of the content.
Long version: I've setup a very minimal squid instance running on a gateway which shouldn't not cache ANYTHING ...
0
votes
0answers
49 views
How can I add cookie to request in nginx?
How can I add/append cookie to request in nginx?
In my current Apache2 configuration I do this in VirtualHost/Directory section.
RequestHeader append Cookie "; XDEBUG_SESSION=PHPSTORM"
0
votes
0answers
34 views
Apache won't accept Chunked-transfer encoded POST request [duplicate]
Possible Duplicate:
Problem with “Transfer-Encoding: chunked” in Apache 2.2
I posted this on Stackoverflow, and it was suggested I post this here instead. I have a java applet that is ...
0
votes
1answer
61 views
Setting correct Content-Type sent from Wordpress, on Apache server
I need help pointing me in the right direction for setting the ContentType returned by Apache for content produced by WordPress. I'm having trouble figuring out why WordPress is returning incorrect ...
2
votes
2answers
98 views
One single page showing 3 requests (also printing the headers)
Someone in my studio designed a webpage some years ago, and now the client decided to change the server (he moved to a Linux Apache server running Gen2 SMP, 64 bits, PHP version 5.3.8, Standard MYSQL ...
1
vote
1answer
193 views
Can I use adsutil.vbs to remove the 'X—Powered-By' response header from IIS6
Can I use adsutil.vbs to remove the X—Powered-By response header from IIS6 configuration?
We have a site that is running on some IIS6 servers. Migration to IIS7 is a few months away at least. In the ...
