Questions tagged [response-headers]
545 questions
0
votes
1 answer
Get Response headers in Meteor.js
Situation
From my Meteor.js website I'm calling my own REST service. Here's a code sample from my server side
function (question) {
var r = Async.runSync(function (done) {
HTTP.get(URL, {
params: {q: question}, headers: {
…

Glenn Van Schil
- 1,059
- 3
- 15
- 33
0
votes
1 answer
Why is cache-control header value backwards when I check against them?
The headers are being appended like so.
context.Response.Headers.Append("Cache-Control", "max-age=0,no-cache,no-store");
When I do an equality check (below) for a unit test, it is failing because the 3 items are in reverse order…

Yatrix
- 13,361
- 16
- 48
- 78
0
votes
0 answers
Client is recognizing Content-Type even after commenting out explicit Content-Type declaration
This is my hello-world application I just wrote.
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setHeader("Cache-Control", "no-store, no-cache,…

codeLearner
- 53
- 2
- 8
0
votes
1 answer
Headers unset still appears in Response Headers
I tried to unset these Headers in the apache.conf and restarted apache.
But when I view the webpage it still appears on the Response Headers. (cleared the cache and deleted cookies)
How do i remove them especially CSP?
Header unset…

Shion Uzuki
- 3
- 1
- 3
0
votes
1 answer
HTTP Header in Response exists with a CURL request but not with Browser request
When I run cURL on an object to see its HTTP response headers (I just added agent flag to emulate a browser request):
curl -I -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85…

mishaker
- 115
- 3
- 8
0
votes
0 answers
angularJS response header access returns null in Safari Browser
After $http request in angularJS, I could see any header sent with response in safari "Web Inspector" (OS: Windows 8). But same when I try to access like headers('Authorization') in angularJS, it returns null.
Tried by setting custom headers also,…

Madhura KM
- 140
- 1
- 10
0
votes
2 answers
store response header value during angular http post
I am making an angular http post to an API which like this
$http({
method: 'POST',
url: 'http://api/ClientEndpoint',
data: register,
headers: { 'Content-Type':…

Harsh Vardhan
- 111
- 1
- 14
0
votes
1 answer
Unable to start debugging a Visual Studio 2012 project using local host on port 8280
Two other developers can debug the asp.net website solution locally on their work stations without any issues.
However, one developer still cannot debug the solution locally on his workstation.
He is getting the following error shown in the image…

Bryan
- 3,629
- 2
- 28
- 27
0
votes
1 answer
have IIS logs get client name
I'm attempting to use the custom fields features created in IIS 8.5 to log the Client Name as well as (or instead of) the Client IP. When parsing through the logs, it's important that if a username is not supplied by the page that I have another way…

DaftDeath
- 99
- 2
- 5
0
votes
1 answer
Apache settings to send gzipped CSS/JS files to browser
I use precomposed gzipped CSS and JS files, so that server doesn't do this on the fly.
So in the same folder I have file.css (gzipped version), file.nozip.css (nogzipped version). Then depending whether browser accepts gzipped files or not, send…

Volder
- 972
- 4
- 13
- 29
0
votes
1 answer
AppEngine Content-Encoding header doesn't appear
I'm trying to send a compressed file through AppEngine, my function is
func handleWebGLRequest(w http.ResponseWriter, r *http.Request) {
c := appengine.NewContext(r)
blobKey, err := blobstore.BlobKeyForFile(c, "/gs//WebGL.datagz")
…

Adam Zeira
- 33
- 5
0
votes
1 answer
enabling CORS - custom response headers do not match
I'm trying to get CORS working on my IIS 7.5 webserver. I have added the following lines to my web.config:
…

mokum
- 25
- 5
0
votes
1 answer
How to get response headers of a request URL from UIWebView Delegates?
I need response headers of the request URL that I need to recieve and process in UIWebview Delegate method webViewDidFinishLoad: ? But I don't understand how to achieve it. Please note that I don't need request headers but response headers.
One idea…

tech savvy
- 1,417
- 4
- 21
- 42
0
votes
1 answer
Add header to response of socket in C#
I'm trying to exchange data between a web page and a c# socket.
The c# socket is running on the localhost.
The webpage runs on a server and points to the localhost.
When the webpage sends a Get request to the c# socket an cross-domain error is…
user2028792
0
votes
1 answer
Request.Headers to read GET URL
I have some code,
if (Request.Headers["User-Agent"] == "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT; MS Search 6.0 Robot)")
{
this.Response.Redirect("/_windows/default.aspx?" + qp.ToString());
}
else…

Grady D
- 1,889
- 6
- 30
- 61