Top "Httpwebrequest" questions

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

How can I do digest authentication with HttpWebRequest?

Various articles (1, 2) I discovered make this look easy enough: WebRequest request = HttpWebRequest.Create(url); var credentialCache = new CredentialCache(); credentialCache.Add( …

c# authentication httpwebrequest webrequest digest
Asynchronous HTTP Client for Java

As a relative newbie in the Java world, I am finding many things frustratingly obtuse to accomplish that are relatively …

java actionscript-3 http httpwebrequest
How to set custom "Host" header in HttpWebRequest?

How can I set a custom Host header in HttpWebRequest? I know that normally this class doesn't allow you to …

.net http reflection httpwebrequest host
Unable to read data from the transport connection: The connection was closed error in console application

I have this code in console application and it runs in a loop try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(search); …

c# httpwebrequest console-application streamreader
Converting Raw HTTP Request into HTTPWebRequest Object

In .NET is it possible to convert a raw HTTP request to HTTPWebRequest object? I'm sure .NET internally doing it. …

.net http tcp httpwebrequest
differences between Msxml2.ServerXMLHTTP and WinHttp.WinHttpRequest?

just when I finally understood the difference between Msxml2.XMLHTTP and Msxml2.ServerXMLHTTP http://support.microsoft.com/kb/290761 XMLHTTP is …

httpwebrequest winhttp xmlhttprequest serverxmlhttp winhttprequest
Implementing HttpWebRequest Async calls

I have this code using (var stream = new StreamWriter(request.GetRequestStream(), Encoding)) stream.Write(body.ToString()); I need to make …

c# asynchronous httpwebrequest streamwriter
Proper way to handle the ampersand character in JSON string send to REST web service

OK, I am using the System.Runtime.Serialization and the DataContractJsonSerialization. The problem is that in the request I send …

c# json windows-phone-8 httpwebrequest datacontractjsonserializer
Improving performance of multithreaded HttpWebRequests in .NET

I am trying to measure the throughput of a webservice. In order to do that, I have written a small …

c# .net multithreading httpwebrequest
How do I use HttpClient PostAsync parameters properly?

So I am working on writing an extension class for my project using HttpClient since I am moving over from …

c# .net httpwebrequest httpclient httpwebresponse