tagged [webrequest]

Making a web request to a web page which requires windows authentication

Making a web request to a web page which requires windows authentication I am trying to make a request to a web page using WebRequest class in .net. The url that I am trying to read requires Windows A...

26 Aug at 07:48

Starting async method as Thread or as Task

Starting async method as Thread or as Task I'm new to `C#`s `await/async` and currently playing around a bit. In my scenario I have a simple client-object which has a `WebRequest` property. The client...

Test if a website is alive from a C# application

Test if a website is alive from a C# application I am looking for the best way to test if a website is alive from a C# application. ### Background My application consists of a , a backend and a to pub...

20 Jun at 09:12

HttpWebRequest.GetRequestStream() breaks by timeout on SSL connection under Windows 7/Vista

HttpWebRequest.GetRequestStream() breaks by timeout on SSL connection under Windows 7/Vista I have an C# windows application (.Net 3.0 Framework) that makes a call to PHP web service using `HttpWebReq...

How to get website title from c#

How to get website title from c# I'm revisiting som old code of mine and have stumbled upon a method for getting the title of a website based on its url. It's not really what you would call a stable m...

30 Nov at 20:23

How can I do digest authentication with HttpWebRequest?

How can I do digest authentication with HttpWebRequest? Various articles ([1](https://web.archive.org/web/20211020134945/https://www.4guysfromrolla.com/articles/102605-1.aspx), [2](https://web.archive...

What makes this HTTPS WebRequest time out even though it works in the browser?

What makes this HTTPS WebRequest time out even though it works in the browser? Here's my request: ``` var request = (HttpWebRequest) WebRequest.Create("https://mtgox.com/"); request.CookieContainer = ...

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

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 d...

6 Sep at 23:13

Reading data from an open HTTP stream

Reading data from an open HTTP stream I am trying to use the .NET WebRequest/WebResponse classes to access the Twitter streaming API here `"http://stream.twitter.com/spritzer.json"`. I need to be able...

Multithreading a large number of web requests in c#

Multithreading a large number of web requests in c# I have an program where I need to create some large number of folders to an external sharepoint site (external meaning I can't use the sharepoint ob...

25 Nov at 14:26

C#.net Web Request could not get 404 custom error message while calling web API but postman does

C#.net Web Request could not get 404 custom error message while calling web API but postman does I am calling external Web API in my own Web API using ServiceStack. For the unsubscribed user, external...

How to calculate HttpWebRequest spent outbound and inbound internet traffic

How to calculate HttpWebRequest spent outbound and inbound internet traffic I have the below function to fetch a page. My question is i want to calculate how much internet connection is spent Both inb...

Getting full response body from System.Net.WebRequest

Getting full response body from System.Net.WebRequest I'm using System.Net.WebRequest to get info from some API. When I get an error, the response contains only the basic HttpStatusCode and message, a...

24 Aug at 09:18

Downloading pdf file using WebRequests

Downloading pdf file using WebRequests I'm trying to download a number of pdf files automagically given a list of urls. Here's the code I have: ``` HttpWebRequest request = (HttpWebRequest)WebRequest....

10 Aug at 12:9

Mono https webrequest fails with "The authentication or decryption has failed"

Mono https webrequest fails with "The authentication or decryption has failed" I'm making a simple REST client to use in my C# applications. In .net on Windows It works great with http:// and https://...

26 Dec at 11:45

HttpWebRequest times out on second call

HttpWebRequest times out on second call Why does the following code Timeout the second (and subsequent) time it is run? The code hangs at: and then causes a WebException saying that the request has ti...

Does any one know about this error: "Wrong Local header signature: 0x6D74683C"?

Does any one know about this error: "Wrong Local header signature: 0x6D74683C"? The following code is used to download a zip file and unzip it on phone. The same code used to work on WP7, I started te...

WebRequest fails to download large files (~ 1 GB) properly

WebRequest fails to download large files (~ 1 GB) properly I am attempting to download a large file from a public URL. It seemed to work fine at first but 1 / 10 computers seem to timeout. My initial ...

15 Dec at 15:30

C# Getting proxy settings from Internet Explorer

C# Getting proxy settings from Internet Explorer i have a problem in certain company in germany. They use proxy in their network and my program cant communicate with server. IE works with this setting...