Questions tagged [response-headers]

545 questions
0
votes
0 answers

PHP HMVC and module Headers

If a user requests a web page which is handled by a PHP controller under an HMVC framework, and that controller subsequently calls a 'module' controller and saves the output to a variable, will any 'headers' output by the 'module' be returned to the…
regan
  • 305
  • 2
  • 15
0
votes
1 answer

IE9 does not open in standards mode even after setting header

To force a web page to open in standards mode I believe I need to add the following meta tag to the head section. I also read at some places that some other tags might get added before…
0
votes
1 answer

ROR - Extract ID from HTTP response location

I have a REST call to Java services which does a POST to the path localhost:8080/api/xyz and returns the response. The response of course has the response.header['location'] with a correct location with ID 'xyz/{id}' For my further steps in…
Abhi
  • 165
  • 1
  • 9
0
votes
1 answer

Downloading S3 file as attachment using knox/node.js passthrough

I am trying to get downloading files from S3 via node/knox working. My javascript call is working and successfully downloads the file, but I want to download it as an attachment. I have tried setting the headers to 'Content-disposition':…
Matt Way
  • 32,319
  • 10
  • 79
  • 85
0
votes
0 answers

How to retrieve header value from XMLHttpRequest

My post is making it to the server and returning correctly; however, I cannot seem to retrieve the var addressId = xhr.getResponseHeader('X-NEW-ADDRESS-ID'); from the XMLHttpRequest header. Can someone point out to me how to retrieve the header…
0
votes
1 answer

Response Header to allow content to be embedded in iframes

I want to allow my webpage to be embedded into (other domains) iframes. What specific header should I send along with the response from the server? Is this header needed for all the resources that will be served inside the iframe (images, css,...)…
Paolo
  • 15,233
  • 27
  • 70
  • 91
0
votes
1 answer

Where to store header (last-modified) to compare file from server for download? Android

I am pulling a file from the web and parsing it. I can get the last-modified header info in an async task like so: URLConnection connection = null; try { connection = new URL(myUrl).openConnection(); } catch…
jasonflaherty
  • 1,924
  • 7
  • 40
  • 82
0
votes
1 answer

WebAPI2 returns a list of record and request an Authorization Token

I'm not too clear how to handle a scenario like this. I have the following API public IEnumerable GetContactList() { pseudo code >> if AuthenticationToken from Header NOT present return…
Johnny
  • 601
  • 6
  • 18
0
votes
1 answer

How to override response headers in ASP.NET Web Api using MediaTypeFormatter

I'm currently developing a MediaTypeFormatter to process a csv files from a Web Api Controller. How can I add the contentHeaders.Add("content-disposition", "attachment; filename=filename.csv"); As of now, I have the following code, but the…
0
votes
1 answer

How to modify Tomcat's response header with valves?

I need to minimize Tomcat's response header. The device sending requests to tomcat is very limited in memory, so I want to remove the headers Date, Server and Content-Type. I set up my own valve with an action hook. The hook gets called, but it…
Kapper
  • 1
  • 1
0
votes
2 answers

Content-type validation fails due to additional information being "injected"

We have a third party software that expects the incoming Content-Type to be explicitly: application/x-www-form-urlencoded However, in our ASP script below, even though we set the request header appropriately, ASP is actually sending it…
0
votes
1 answer

How to read response header of a ajax post call of empty response body

I am making a ajax post call that returns the required information in the response header an the empty response body . I am using the following code to make call $.ajax({ url : someUrl, type : "post", contentType :…
Gowsikan
  • 5,571
  • 8
  • 33
  • 43
0
votes
1 answer

I get WebException timeout when I use webclient.DownloadFile after webclient.ResponseHeaders

I am trying to create my own download manger. When a link is added to the download manger I use a webclient to get it's information from the server. Like so WebClient webClient = new WebClient(); webClient.OpenRead(link); string filename =…
MarwanMR1
  • 11
  • 2
0
votes
1 answer

How can I take headers from this ajax request?

This script returns 302 exception, but I can't take Headers from response. In console I can see header location. It returns a new URL, but I can't get it from script. HELP! jQuery.ajax({ url:…
0
votes
1 answer

android-async-http library get http response header from Response Handler

I am trying to use the android-async-http library http://loopj.com/android-async-http/ It suggests to use this code: public void getPublicTimeline() throws JSONException { TwitterRestClient.get("statuses/public_timeline.json", null, new…
Zapnologica
  • 22,170
  • 44
  • 158
  • 253