Top "Httpwebrequest" questions

HttpWebRequest is a class for .NET Framework applications that provides a HTTP-specific implementation of the WebRequest class.

HttpWebRequest.GetRequestStream : What it does?

Code exemple: HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://some.existing.url"); request.Method = "POST"; request.ContentType = "text/xml"; Byte[] documentBytes = …

c# httpwebrequest
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
Set the SecurityProtocol (Ssl3 or TLS) on the .net HttpWebRequest per request

My application (.net 3.5 sp1) uses the HttpWebRequest to communicate with different endpoints, sometimes its over HTTPS where each hosting server …

.net httpwebrequest
httpWebRequest (The underlying connection was closed: The connection was closed unexpectedly.)

I am developing an C# application which logs data from a webserver. It sends the following post request to the …

c# httpwebrequest fiddler connectionexception
Async and Await with HttpWebRequest.GetResponseAsync

I am trying to use Async and Await when making a web request and am finding that it never gets …

c# windows-8 windows-runtime httpwebrequest async-await
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
HttpWebRequest C# uploading a file

using C#, I'm trying to integrate my web store w/ an email marketing client. I want to upload a comma …

c# file httpwebrequest uploading
Http Request Life Cycle

I have recently started my job as web application backend developer. I am bit stuck in understanding lifecycle of a …

apache http httpwebrequest
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
HttpWebResponse.Cookies empty despite Set-Cookie Header (no-redirect)

I'm struggling to figure out what is wrong here. I'm sending login information, I can see the Set-Cookie in the …

c# cookies httpwebrequest