Top "Httpwebrequest" questions

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

HttpWebRequest: Add Cookie to CookieContainer -> ArgumentException (Parametername: cookie.Domain)

I'm trying to login to a website via my application. What I did: First I figured out how the browser …

c# cookies httpwebrequest webrequest
C# keep session id over httpwebrequest

I need to preserve the same session id when navigating over a site's pages using C#.Net (like a crawler). …

c# session cookies httpwebrequest
The remote server returned an error: (415) Unsupported Media Type

I try to upload a text file from WPF RESTful client to ASP .NET MVC WebAPI 2 website. Client code HttpWebRequest …

c# asp.net-web-api httpwebrequest media-type
How to set the content of an HttpWebRequest in C#?

An HttpWebRequest has the properties ContentLength and ContentType, but how do you actually set the content of the request?

c# .net httpwebrequest
HttpWebRequest not passing Credentials

I'm trying to use HTTPWebRequest to access a REST service, and am having problems passing credentials in, see code below. …

c# asp.net httpwebrequest
The server committed a protocol violation. Section=ResponseHeader Detail=CR must be followed by LF, In WinForms?

I am trying to use a WebClient / HttpWebRequest to download some data from a server. I use the following code …

c# winforms httpwebrequest webclient system.net.webexception
Standard for adding multiple values of a single HTTP Header to a request or response

If I want to add a list of values as an HTTP Header, is there a standard way to do …

http httpwebrequest http-headers
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
HttpWebRequest, How to Send POST Data with Application/JSON Content-Type?

HttpWebRequest request = (HttpWebRequest) HttpWebRequest.Create(url); request.Method = "POST"; request.ContentType = "application/x-www-form-urlencoded; charset=utf-8"; POST data was send (I …

c# httpwebrequest yahoo-messenger
C# - Connection: keep-alive Header is Not Being Sent During HttpWebRequest

I'm trying to send to send the following header with my HttpWebRequest: Connection: keep-alive However, the header is never sent. …

c# http https httpwebrequest http-headers