tagged [http-headers]

Content-Disposition:What are the differences between "inline" and "attachment"?

Content-Disposition:What are the differences between "inline" and "attachment"? What are the differences between and I don't know the differences , because when I use one or another I always get a win...

22 Mar at 15:10

How can I get all the request headers in Django?

How can I get all the request headers in Django? I need to get all the Django request headers. From what I've read, Django simply dumps everything into the `request.META` variable along with a lot of ...

How to prevent http file caching in Apache httpd (MAMP)

How to prevent http file caching in Apache httpd (MAMP) I am developing a single page Javascript application in MAMP. My JavaScript and HTML template files are getting cached between requests. Is ther...

24 Nov at 16:20

Proper MIME media type for PDF files

Proper MIME media type for PDF files 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 i...

15 Feb at 16:17

Adding headers to requests module

Adding headers to requests module Earlier I used `httplib` module to add a header in the request. Now I am trying the same thing with the `requests` module. This is the python request module I am usin...

11 Oct at 13:48

Are HTTP headers case-sensitive?

Are HTTP headers case-sensitive? In a blog post I use the following PHP to set the content-type of a response: I just got a comment on that post saying that `content-type` needs to be capitalized, `Co...

10 Jan at 22:34

Custom HTTP headers : naming conventions

Custom HTTP headers : naming conventions Several of our users have asked us to include data relative to their account in the of requests we send them, or even responses they get from our API. What is ...

24 Aug at 22:5

What does vary:accept-encoding mean?

What does vary:accept-encoding mean? the google page speed addon informs me: I don't understand what this means. I've already compressed these files like so: ``` if (encodings.Contains("gzip") || enco...

21 Oct at 11:33

How do we control web page caching, across all browsers?

How do we control web page caching, across all browsers? Our investigations have shown us that not all browsers respect the HTTP cache directives in a uniform manner. For security reasons we do not wa...

Adding custom HTTP headers using JavaScript

Adding custom HTTP headers using JavaScript On an HTML page, while clicking the link of an Image ("img") or anchor ("a") tags, I would like to add custom headers for the GET request. These links are t...

26 Jan at 00:3

Representing Date in http header using QDateTime

Representing Date in http header using QDateTime HI, Date in http header is represented according to RFC 822 (As Updated by RFC 1123), like Wed, 15 Jul 2009 12:16:22 GMT. Able to represent in QDateTim...

15 Jul at 13:33

Custom header to HttpClient request

Custom header to HttpClient request How do I add a custom header to a `HttpClient` request? I am using `PostAsJsonAsync` method to post the JSON. The custom header that I would need to be added is Thi...

How can I get the clients IP address from HTTP headers?

How can I get the clients IP address from HTTP headers? I understand it's a standard practice to look at both these variables. Of course they can easily be spoofed. I'm curious how often can you expec...

10 May at 16:3

How to get host name with port from a http or https request

How to get host name with port from a http or https request I have two applications deployed in a JBoss container (same unix box). If I receive a request from app1, I need to send a corresponding requ...

What exactly does the Access-Control-Allow-Credentials header do?

What exactly does the Access-Control-Allow-Credentials header do? I'm trying to understand how to use CORS and am confused about what the `Access-Control-Allow-Credentials` header does. [The documenta...

29 Oct at 12:12

Possible to detect the *type of mobile device* via javascript or HTTP Headers?

Possible to detect the *type of mobile device* via javascript or HTTP Headers? I've got a request from a customer to automatically detect the type of mobile device (not the browser, the type. ex: Moto...

Create a CSV File for a user in PHP

Create a CSV File for a user in PHP I have data in a MySQL database. I am sending the user a URL to get their data out as a CSV file. I have the e-mailing of the link, MySQL query, etc. covered. How c...

23 Jan at 04:19

What's the point of the X-Requested-With header?

What's the point of the X-Requested-With header? JQuery and other frameworks add the following header: > X-Requested-With: XMLHttpRequest Why is this needed? Why would a server want to treat AJAX requ...

14 Jan at 20:8

How to get final URL after following HTTP redirections in pure PHP?

How to get final URL after following HTTP redirections in pure PHP? What I'd like to do is . Right now I have a URL (let's say [http://domain.test](http://domain.test)), and I use get_headers() to get...

26 Sep at 18:12

How to know if an HTTP request header value exists

How to know if an HTTP request header value exists Very simple I'm sure, but driving me up the wall! There is a component that I use in my web application that identifies itself during a web request b...

Adding headers in ASP.NET MVC 3

Adding headers in ASP.NET MVC 3 I have a basic ASP.NET MVC 3 app. I have a basic action that looks like the following: I am trying to let someone access this action via a JQuery Mobile app that will b...

26 May at 11:11

What is http multipart request?

What is http multipart request? I have been writing iPhone applications for some time now, sending data to server, receiving data (via HTTP protocol), without thinking too much about it. Mostly I am t...

4 Feb at 14:7

Set HTTP header for one request

Set HTTP header for one request I have one particular request in my app that requires Basic authentication, so I need to set the Authorization header for that request. I read about [setting HTTP reque...

26 Nov at 16:15

Accessing IHttpRequest or IRequestContext from container

Accessing IHttpRequest or IRequestContext from container I need to have the resolution of a dependency for my services to be based off the value of an HTTP header in the incoming request. I've tried r...

25 Jul at 08:23

HTTP HEAD response - set Content-Length

HTTP HEAD response - set Content-Length I'm trying to build a HEAD method to one of our services so that clients can peek at the content type and size before deciding whether to download it. How can I...

21 Aug at 13:17