http-headers Questions

2

Solved

I have been trying to download attachment with Chinese filename but somehow their encoding changes while downloading and some gibberish filename is saved where there are Chinese chararchters. Techn...
Shantay asked 18/5, 2018 at 9:59

3

Solved

I am trying to do a POST request but when I am compiling and executing it with the debugger of Visual Studio Code, I am getting an error of 400 Bad Request. Regardless of that, when I am doing the ...
Dairymaid asked 22/12, 2020 at 13:34

2

Is there a way to prevent flask from setting caching headers in send_file or do I have to manipulate them manually afterwards?
Rahr asked 8/8, 2017 at 0:31

4

I’m trying to figure out why Facebook is ignoring an opengraph image. Their Sharing Debugger says it ignores the image because it has an invalid content type . This happens for all images served fo...
Galaxy asked 10/8, 2020 at 16:10

3

Solved

I have bundled all my js libraries into one large file in order to spare a number of http requests. But for some reason it takes 9.29 seconds (sometimes +15) to download this bundle of 1.2mb. In...
Ancohuma asked 2/8, 2018 at 13:18

3

I am trying to setup nginx to handle file uploads and pass the file information on to a backend server once done. I came across a post at https://coderwall.com/p/swgfvw that shows how to do t...
Gretta asked 24/4, 2014 at 9:57

4

I want to add custom headers (Bearer token) to each http call in a ASP.Net Web Form application. Using the recommendations in the following links, I added the code to send added headers to the ser...
Rutilant asked 7/5, 2019 at 20:22

6

Solved

I'm making a very simple JSON API in Java. It's actually a Project Zomboid mod that serves object coordinates. This is how my HTTP handler looks like: public class JSONZomboid implements HttpHandl...
Syzygy asked 9/2, 2016 at 22:43

3

Solved

I am missing http headers in a response from my HttpInterceptor. I can get a body but not headers. Please see attached output and my code. @Injectable() export class ApiVersionInterceptor implemen...
Musser asked 11/2, 2020 at 10:18

4

I am hoping someone can advise on the proper method for getting Varnish to send cache-control headers. Currently, my configuration is sending "Cache-Control: no-cache" to clients. Thanks in advan...
Dna asked 25/1, 2012 at 20:43

1

I'm would to know why AVPlayer ask's union ranges in requests. Example: 1. We have good wi-fi connection. 2. Track with total length = 1000000. AVPlayer in first will ask bytes=0-1 - its ok, it j...
Quartersaw asked 5/8, 2013 at 12:20

2

Solved

I read What HTTP status response code should I use if the request is missing a required parameter? but it did not specifically ask about headers and there didn't seem to be a consensus. The contex...

8

Solved

I'd like to send a 401 Unauthorized AND redirect the client somewhere. However: if I do it like this: header('HTTP/1.1 401 Unauthorized'); header('Location: /'); the server sends a 302 Found wi...
Chrisman asked 8/1, 2012 at 5:24

4

Solved

How to remove header content-type in apache ? The following code does not work header_remove('content-type');
Yvoneyvonne asked 20/8, 2013 at 4:6

7

Solved

I have tried to put this: <meta http-equiv="X-XSS-Protection" content="0"> in the <head> tag but have had no luck. I am trying to get rid of pesky IE preventing cross-site scirpting...
Weiner asked 8/1, 2011 at 18:20

2

There are some old questions regarding this topic, but the issue I'm facing is just some days old so thought to create a new thread. I am using the content-disposition inline combined with filename...
Bankrupt asked 30/3, 2022 at 14:53

5

Solved

Is there a way to check if a request is AJAX in Python? The equivalent of PHP's $_SERVER['HTTP_X_REQUESTED_WITH'] == 'xmlhttprequest'?
Semicircle asked 14/12, 2011 at 17:5

4

Solved

I want to set all of my http headers responses to something like this: response.headers["X-Frame-Options"] = "SAMEORIGIN" I checked this question, but it only changes the header for one specific...
Spandex asked 8/6, 2015 at 19:8

7

Solved

I am trying to use this code to download a .zip file <?php $file = "something.zip"; $size = filesize($file); header('Content-type: application/octet-stream'); header("Content-length: $size"...
Benefit asked 11/1, 2014 at 16:48

10

Solved

I've got a rather odd situation happening, that I'm having difficulty tracking down in an existing Django application. One of the views, which inherits from APIView, returns with a file when a user...
Yarndyed asked 25/3, 2019 at 15:30

6

I have just started react. My page works fine on localhost. Now I am trying to host my page on github. I have used "npm run deploy" and hosted This is my package.json Now when I am tryin...
Iranian asked 18/10, 2021 at 15:51

2

Solved

I am trying to test a HTTP client that is written in C, that sends an HTTP POST request to a local sever on my computer. I have added the headers keep-alive in my POST request that looks like this ...
Homopolar asked 1/5, 2018 at 16:23

2

Solved

I have an AJAX request that sends out some data. The data respects the multipart/form-data specification. The problem I'm facing is that the browser sets the Content-Type header to text/plain and ...
Oily asked 23/1, 2011 at 12:10

1

Solved

I attempted the following: Utilize the German stock exchange's API (https://api.boerse-frankfurt.de/v1/search/equity_search) to retrieve index values. The API can be accessed externally using para...
Occidentalize asked 10/4 at 20:59

2

I'm trying to create a new client in my Springboot realm through the keycloak REST API using postman, but I'm getting an unknown error as the response. The URL in post method is localhost:8180/auth...
Bellis asked 20/11, 2019 at 11:35

© 2022 - 2024 — McMap. All rights reserved.