httpresponse 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

5

Solved

This question is very similar to one I just asked href: Can I get Google search results to use/display the final redirect url?, but now the question is specific to Django. My site has webpage urls...
Egerton asked 29/3, 2014 at 8:24

3

Solved

I've been trying to write or set the HttpContext.Response.Body but to no avail. Most of the samples I found is using the Body.WriteAsync but the paramaters are different than the example. I tried c...
Overskirt asked 10/7, 2020 at 12:6

5

I'm interested in capturing the Internet Protocol (IP) address of my users at their initial submit to my website. I was under the impression that a SvelteKit submit would be similar to other node.j...
Siouxie asked 28/12, 2021 at 20:34

1

I thought it would be rather simple but I am struggle to successfully send response then modify my cloned response that is being stored in cache inside my service worker. Ultimately I want to app...

4

Solved

Currently I have this request: await url .SetQueryParams(queryString) .SetClaimsToken() .GetJsonAsync<T>() I'd like to start using Polly (https://github.com/App-vNext/Polly) now to hand...
Tallbot asked 22/11, 2016 at 15:31

9

Solved

To my surprise, I can't do anything nearly as simple as this, from what I can tell, in the .NET BCL: byte[] response = Http.Post ( url: "http://dork.com/service", contentType: "application/x-www...
Bjorn asked 3/11, 2010 at 15:21

9

How can we remove the server header response in IIS 8.0/8.5? My current server report: Microsoft-IIS/8.0 Microsoft-IIS/8.5 For IIS 7.0 I used the URLScan 3.1 however this is only supported for IIS...
Gd asked 14/3, 2014 at 9:41

5

Solved

Is there a way to determine the size of the HTTPServletResponse content? I read this get-size-of-http-response-in-java question but sadly where I work I do not have access to CommonsIO :( The resp...
Skylark asked 25/3, 2011 at 16:35

7

Solved

I have created a simple HTTP server which allows users to download files. But this does not seem to work for mp3 files. The content type currently is "application/misc". In order to make it work wi...
Arcanum asked 18/8, 2012 at 10:9

2

Solved

What is the most appropriate HTTP status code to give to a client to mean "your request is fine, but it is still in progress; check back shortly in the exact same place." For example, say the clie...
Hau asked 12/2, 2013 at 3:35

5

Solved

In an ASP.net MVC 2 app that I have I want to return a 204 No Content response to a post operation. Current my controller method has a void return type, but this sends back a response to the client...
Men asked 22/12, 2010 at 20:50

5

Solved

The following refers to a .NET Core application with dependencies as follows... Microsoft.NETCore.App Microsoft.AspNet.WepApi.Client (5.2.7) At Microsoft.com is the document Call a Web API From a ...
Alloplasm asked 27/7, 2020 at 3:27

7

Solved

I'm currently using a HttpResponse to download files from my Server. I already have a couple functions being used to download Excel/Word files, but I'm having trouble getting my simple Text file (....

3

I'm trying to get Django's HttpResponse to return binary data without much success. I've been trying different methods for a while now, but without success. Encoding the string to ASCII works as l...
Intonation asked 8/3, 2014 at 23:37

3

Solved

I am currently using Polly to limit the number of requests I send. This is the policy I currently have: private AsyncPolicyWrap<HttpResponseMessage> DefineAndRetrieveResiliencyStrategy() { H...
Whoop asked 25/2, 2019 at 16:14

3

I am using Cloudflare worker which is triggered by HTTP requests. I want to take the incoming request, change the url but leave all other properties untouched, and then issue the request. The struc...
Hemipode asked 31/5, 2020 at 15:34

9

Solved

Is it possible to create a Chrome extension that modifies HTTP response bodies? I have looked in the Chrome Extension APIs, but I haven't found anything to do this.
Sculpturesque asked 19/8, 2013 at 9:26

10

Solved

I have written tests with Selenium2/WebDriver and want to test if HTTP Request returns an HTTP 403 Forbidden. Is it possible to get the HTTP response status code with Selenium WebDriver?
Volitive asked 28/6, 2011 at 16:13

4

Solved

Where should I store the ETag for a given resource? Approach A: compute on the fly Get the resource and compute the ETag on the fly upon each request: $resource = $repository->findByPK($id); ...
Catie asked 21/8, 2012 at 6:48

5

Solved

I want to fetch a response body as string in selenium-wire which I will eventually parse as JSON. response.body in selenium-wire gives bytes string. I tried decoding it as response.body.decode('utf...
Nitride asked 28/4, 2021 at 19:42

7

I have about 40 APIs that have similar base response structure as follows: { "lastAccessed": "2015-30-08:14:21:45T", "createdOn": "2015-30-07:09:04:10T", "lastModified": "2015-30-08:14:21:45T",...
Bigotry asked 1/11, 2015 at 5:55

17

Solved

For returning from a Web API 2 controller, I can return content with the response if the response is OK (status 200) like this: public IHttpActionResult Get() { string myResult = ... return Ok(my...
Epiphragm asked 18/2, 2015 at 16:29

4

Solved

I have a Web API project and right my methods always returns HttpResponseMessage. So, if it works or fails I return: No errors: return Request.CreateResponse(HttpStatusCode.OK,"File was processe...
Savina asked 11/4, 2014 at 14:56

13

Solved

I am returning a NotFound IHttpActionResult, when something is not found in my WebApi GET action. Along with this response, I want to send a custom message and/or the exception message (if any). Th...
Koenraad asked 22/11, 2013 at 7:43

© 2022 - 2024 — McMap. All rights reserved.