Top "Httpresponse" questions

An HTTP response is a network message which is made of a body and metadata in the form of headers, according to HTTP specification.

How to get HTTP Response Code using Selenium WebDriver

I have written tests with Selenium2/WebDriver and want to test if HTTP Request returns an HTTP 403 Forbidden. Is it …

java selenium webdriver httprequest httpresponse
How to Use Content-disposition for force a file to download to the hard drive?

I want to force the browser to download a pdf file. I am using the following code : <a href="../…

html download httpresponse content-disposition
download csv file from web api in angular js

my API controller is returning a csv file as seen below: [HttpPost] public HttpResponseMessage GenerateCSV(FieldParameters fieldParams) { var output = new …

javascript angularjs csv asp.net-web-api httpresponse
Writing MemoryStream to Response Object

I am using the following code to stream pptx which is in a MemoryStream object but when I open it …

c# asp.net httpresponse
setcookie, Cannot modify header information - headers already sent

I am new to PHP, I practised PHP setcookie() just now and failed. http://localhost/test/index.php <!DOCTYPE …

php http cookies httpresponse
Web API Best Approach for returning HttpResponseMessage

I have a Web API project and right my methods always returns HttpResponseMessage. So, if it works or fails I …

c# asp.net-mvc json asp.net-web-api httpresponse
How do I return NotFound() IHttpActionResult with an error message or exception?

I am returning a NotFound IHttpActionResult, when something is not found in my WebApi GET action. Along with this response, …

c# asp.net-web-api http-status-code-404 httpresponse
Make http client synchronous: wait for response

I have some file to upload and some of the files failed because the post is asynchronous and not synchronous.. …

c# httpresponse dotnet-httpclient
How to print out returned message from HttpResponse?

I have this code on my Android phone. URI uri = new URI(url); HttpPost post = new HttpPost(uri); HttpClient client = …

java .net android httpresponse
content type for mp3 download response

I have created a simple HTTP server which allows users to download files. But this does not seem to work …

http-headers mp3 httpresponse