Questions tagged [http-headers]

In the Hypertext Transfer Protocol (HTTP), HTTP header fields contain the operating parameters of an HTTP request or response. With the request or response line (first line of message), they form the message header.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
52 views

Why does Chrome show 304 in Response Headers section but 200 in Status code?

Why does Chrome show 304 in Response Headers section but 200 in Status code? Why doesn't it show 304 in Status code (BTW, that is NOT 200 memory cache.)? If it shows 200 I can't know it is ...
4
votes
0answers
28 views

Header to describe available `content-type` responses?

It's a little cumbersome to scrape through the HTTP RFC for this particular question, so I'm hoping someone can help me short-circuit an answer: Does the HTTP spec contain functionality for a server ...
4
votes
0answers
83 views

Responding other 'Content-Type' different from 'Accept' list

As all you know (else follow this question) the requesting Accept header allows client to specify the expected MIME types for response content. But my case is: client indicates an Accept of type ...
2
votes
0answers
526 views

How do I implement “If-Modified-Since” header on a node server?

My web-application is running on a node server on azure. I need to implement the "If-Modified-Since" header on this server. Could you please guide me how to do this? I tried implementing by setting ...
2
votes
0answers
56 views

Browser's auto request detection with X-Purpose

3 to 4 months ago, I found out that safari/chrome/firefox all have feature that automatically send request with X-Purpose header (with preview value for Safari) to get live thumbnail or top sites ...
2
votes
0answers
40 views

How lenient should I be when checking the range header parameters?

I made more of my URLs now accept the HTTP range request so that only user requested bytes of the document can be parsed. This is the range header my code supports: range: bytes=s-e where s is the ...
1
vote
0answers
21 views

Apache: using %{DOCUMENT_ROOT} inside <Directory> section

My virtualhost configuration file sites-available/site.conf contains (some lines omitted): <VirtualHost *:443> <Directory /var/www/html/my_website> # set options </Directory>...
1
vote
0answers
48 views

Using Post method in Faceook Graph API

When I use graph API to post on a Facebook page it's not working, it responds with an ID and URL but instead it should be responding with a post id. When I open the URL it gives this error: { "...
1
vote
0answers
16 views

Download link expired, going back to software presentation page, what redirect method to use?

When someone (user or bot) reaches an old download link like /download/yellow-wallpaper.zip?key=some-expired-download-key , user is sent back to file details page, e.g /yellow-wallpaper.html, where ...
1
vote
0answers
863 views

Append basic authentication header NGINX to existing authentication header of upstream application

Assume the following setup: The NGINX reverse proxy is asking for basic authentication (which is a good habit when you expose things on the internet). Basic authentication uses the Authorization ...
1
vote
0answers
946 views

How to disable http method verb tunneling in nginx

Our security team ran a web-inspect security scan on our site and asked us to disable verb tunneling using headers or query parameters such as X-HTTP-Method, XHTTP-Method-Override, X-Method-Override, ...
1
vote
0answers
173 views

Why is my Last-Modified header always sent using GMT timezone?

I want to send the last-modified in IST timezone, But it always sends in GMT. What is wrong with this PHP code? echo "Timezone " . date_default_timezone_get () ; //==>verified, timezone set ...
1
vote
0answers
29 views

Google Analytics stopped registering hits 10 minutes after implementing measurement protocol

I'm trying to implement google analytics on server-side. In order to (loosely) identify visitors, I'm generating an md5 based on IP and user-agent and send the result to Google for tracking the ...
1
vote
0answers
282 views

Is a Server and Date HTTP header really necessary for error or redirecting pages?

On practically every URL I visit using the command-line tool CURL, there is always a server identification header and date header outputted regardless of the status of the request. For example, on my ...
1
vote
0answers
939 views

Apache 404 Issue after upgrading from Mavericks to Yosemites

Good afternoon fellow StachExachangers, Background story: I have recently upgraded my macbook pro from Mavericks to Yosemites, everything went well except my local development environment got ...