Top "Httpwebresponse" questions

Provides an HTTP-specific implementation of the WebResponse class

How to process WebResponse when .NET throws WebException ((400) Bad Request)?

I'm using Facebook Graph Api and trying to get user data. I'm sending user access token and in case this …

c# asp.net facebook exception httpwebresponse
WebClient vs. HttpWebRequest/HttpWebResponse

It seems to me that most of what can be accomplished with HttpWebRequest/Response can also be accomplished with the …

.net httpwebrequest webclient httpwebresponse
C# Xml in Http Post Request Message Body

I am looking for an example of how, in C#, to put a xml document in the message body of …

c# xml httpwebrequest httpwebresponse
C# How to set HttpClient Keep-Alive to false

I had a low performance problem with HTTP requests on .NET. The HTTP GET request to a REST API on …

c# .net rest httpclient httpwebresponse
How to read HTTP header from response using .NET HttpWebRequest API?

My app currently uses OAuth to communicate with the Twitter API. Back in December, Twitter upped the rate limit for …

c# twitter oauth httpwebresponse
Logging Into A Website Using C# Programmatically

So, I've been scouring the web trying to learn more about how to log into websites programmatically using C#. I …

c# login httpwebrequest httpwebresponse
How to get cookies info inside of a CookieContainer? (All Of Them, Not For A Specific Domain)

Please see the code below: CookieContainer cookieJar = new CookieContainer(); HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://www.google.com"); request.CookieContainer = …

c# cookies .net-4.0 httpwebrequest httpwebresponse
Sockets in C#: How to get the response stream?

I'm trying to replace this: void ProcessRequest(object listenerContext) { var context = (HttpListenerContext)listenerContext; Uri URL = new Uri(context.Request.RawUrl); …

c# sockets httpwebrequest httpwebresponse
How to set useUnsafeHeaderParsing in code

I am getting the following exception: The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by …

c# c#-4.0 httpwebrequest httpwebresponse
How to parse HttpWebResponse.Headers.Keys for a Set-Cookie session id returned

I'm trying to create an HttpWebRequest/HttpWebResponse session with an ASP.NET website to later parse an HTML form through …

c# cookies httpwebrequest httpwebresponse setcookie