Questions tagged [httpresponse]

An HTTP response is a network message which is made of a body and metadata in the form of headers, according to HTTP specification. May also refer an HttpResponse class in software frameworks and libraries that automates relevant functionality

From W3C specification:

   Response      = Status-Line               ;
                   *(( general-header        ;
                    | response-header        ;
                    | entity-header ) CRLF)  ;
                   CRLF
                   [ message-body ]          ;

See also:

3825 questions
1
vote
1 answer

Android Java: Get Response Body from HttpUrlConnection

I have an HttpUrlConnection and I can get response Headers from it like below: How to read full response from HttpURLConnection? But I've tried many ways to get the response Body without success. For example: br = new BufferedReader(new…
Vahid
  • 3,384
  • 2
  • 35
  • 69
1
vote
0 answers

Download multiple files using httpservlet

I am trying to implement a function where on a page like this you first select the records to export/download, after clicking download button and fetching records from db, the information will be saved in two ways: for text info, they will be…
DXC
  • 21
  • 1
1
vote
1 answer

Avoid reading closed stream consuming AWS Response

I still can't understand how to read the content of an AWS response while I'm doing calls to my Elastic Search Service signing the requests. It seems like the stream is consumed somewhere. The only way I can, for example, print the response content…
Stefano Lazzaro
  • 387
  • 1
  • 4
  • 22
1
vote
4 answers

String from Httpresponse not passing full value

HI i am in desperate need for help here, I am making a web request and getting a json string with Response.ContentLenth=2246 but when i parse it in a string it gives only few 100 characters, i traked it down that it is only getting values less than…
Shekhar_Pro
  • 18,056
  • 9
  • 55
  • 79
1
vote
0 answers

Unseekable HTTP Response

I am accessing some .mat files hosted on a SimpleHTTP server and trying to load them using Python's loadmat: from scipy.io import loadmat import requests r = requests.get(requestURL,stream=True) print loadmat(r.raw) However, I am getting an…
cinabars
  • 11
  • 3
1
vote
0 answers

Duplicate instances of "no-store" header in response

I was trying to set response headers to my spring project. I wanted to set Cache-Control to "no-cache , no-store" . However , two instances of no-store are getting appended to cache-control header. Any reason from where the second instance is…
1
vote
3 answers

PHP - strange issue - corrupted headers/content due to seemingly unrelated code line

I have spent 3 days & 4 SO questions trying to fix something which didn't have a problem in the first place. However, the actual problem now has me stumped. Please see the following curl code. It correctly fetches a particular webpage and displays.…
JP19
1
vote
1 answer

C# to JS: How to append img src with base64 (RawBytes) image format?

I'm trying to pass an image returned from an API in the form of bytes to the front end to append to the page. I do NOT want to save the image in the file system, just passing it through this way. The response is getting returned, but I'm lost as to…
LatentDenis
  • 2,839
  • 12
  • 48
  • 99
1
vote
2 answers

Understand why image is downloaded two times

Maybe it's a stupid question but I don't understand why the image is downloaded two times. As you can see in the screenshot I'm trying to download an image called "vigna.20.min.jpg", but it is called two times! One call with type "xhr" and the other…
Jacob
  • 595
  • 1
  • 7
  • 25
1
vote
2 answers

HttpContext.Current.Response write file after download manager starts

I'm trying to create a ZIP file on the fly which might contain a few thousands of pictures. public static void CompressAndSendFiles(List files) { HttpContext.Current.Response.ClearContent(); // LINE1: Add the file name and…
Arash N
  • 324
  • 1
  • 2
  • 10
1
vote
1 answer

When the HTTP headers are already sent?

I have this module: public class SecureCookieModule : IHttpModule { public void Dispose() { } public void Init(HttpApplication context) { context.EndRequest += OnEndRequestHandlerExecute; } private void…
Antoan Elenkov
  • 711
  • 1
  • 5
  • 20
1
vote
1 answer

Streaming & downloading Large CSV files using StreamingHttpResponse

So the issue I am facing is trying to get our webservers export to CSV button working, one requirement is the file cannot be saved locally and must be streamed straight to the client. At the moment I am just trying to get a basic CSV file streamed…
J. Scull
  • 309
  • 3
  • 13
1
vote
1 answer

Intermittent HttpClient GET issue on android

I have an android application i have been working on that downloads an image from a server, reads it into a bitmap and displays it on an ImageView This works great most of the time, but every so often, it goes through the process (There is a…
1
vote
1 answer

com.twitter.sdk.android.core.TwitterApiException: HTTP request failed, Status: 403

I have recently added fabric plugin in my android studio, but i am not finding twitter login option on that plugin. When i search on google then i found one question that fabric has recently removed twitter login kit . so i integrate twitterkit…
Farmer
  • 4,093
  • 3
  • 23
  • 47
1
vote
1 answer

Calling SharePoint with HttpClient PostAsync() results into forbidden response

I am trying to send HttpClient PostAsync() request to company's internal sharepoint site but its returning response with forbidden error. I have all necessary access permission for site to load and have also passed required headers to the HttpClient…
Ajinkya Wani
  • 39
  • 1
  • 10