The HTTP standard says: If this header [Content-Disposition: attachment] is used in a response with the application/octet-stream content-type, the implied suggestion is that the user agent should not display...
I’ve seen application/csv used and also text/csv. Is there a difference? Does it matter which as long as the request matches something that’s available? Are they interchangeable? 5 s...
Till 9.x, the headers were under the resources in the Developer Tools, but now I can’t find it anywhere. 9 s 9 I’m not sure about your exact version,...
Web applications that want to force a resource to be downloaded rather than directly rendered in a Web browser issue a Content-Disposition header in the HTTP response of the...
One can request only the headers using HTTP HEAD, as option -I in curl(1). $ curl -I / Lengthy HTML response bodies are a pain to get in command-line,...
The header Cache-Control: max-age=0 implies that the content is considered stale (and must be re-fetched) immediately, which is in effect the same thing as Cache-Control: no-cache. 8 s 8...
In a blog post I use the following PHP to set the content-type of a response: header('content-type: application/json; charset=utf-8'); I just got a comment on that post saying that...
Several of our users have asked us to include data relative to their account in the HTTP headers of requests we send them, or even responses they get from...
When working with PDFs, I’ve run across the MIME types application/pdf and application/x-pdf among others. Is there a difference between these two types, and if so what is it?...
In HTTP there are two ways to POST data: application/x-www-form-urlencoded and multipart/form-data. I understand that most browsers are only able to upload files if multipart/form-data is used. Is there...