Top "Httpwebresponse" questions

Provides an HTTP-specific implementation of the WebResponse class

Uses of content-disposition in an HTTP response header

I have found the following asp.net code to be very useful when serving files from a database: Response.AppendHeader("…

http http-headers httpwebresponse httpresponse content-disposition
How to convert WebResponse.GetResponseStream return into a string?

I see many examples but all of them read them into byte arrays or 256 chars at a time, slowly. Why? …

c# .net string httpwebresponse
reading HttpwebResponse json response, C#

In one of my apps, I am getting the response from a webrequest. The service is Restful service and will …

c# json rest httpwebrequest httpwebresponse
How to get error information when HttpWebRequest.GetResponse() fails

I am initiating an HttpWebRequest and then retrieving it's response. Occasionally, I get a 500 (or at least 5##) error, but no …

c# httpwebrequest httpwebresponse
Getting JSON data from a response stream and reading it as a string?

I am trying to read a response from a server that I receive when I send a POST request. Viewing …

c# json winforms httpwebresponse
How To Use HttpWebRequest/Response To Download A Binary (.exe) File From A Web Server?

I am writing a program that needs to download an .exe file from a website and then save it to …

c# stream httpwebrequest streamreader httpwebresponse
How to set response filename without forcing "save as" dialog

I am returning a stream in some response setting the appropriate content-type header. The behavior I'm looking for is this: …

http http-headers httpwebresponse httpresponse content-disposition
Getting the Response of a Asynchronous HttpWebRequest

Im wondering if theres an easy way to get the response of an async httpwebrequest. I have already seen this …

c# asynchronous httpwebrequest httpwebresponse
There is an error in XML document (1,2) , System.InvalidOperationException: <AuthorizationResult xlms:""> was not expected

XML sent from API <AuthenticationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <PAPIErrorCode>0</PAPIErrorCode> &…

c# xml api deserialization httpwebresponse