Ask a Question related to ASP.NET Web Services, Design and Development.
-
Steven J. Reed #1
Webclient w/ Proxy
I have a WebClient.OpenRead that is timing out on some client machines. I
believe the problem may be Proxy settings on the client machine.
How do I set proxy settings on a WebClient.OpenRead method?
Steven J. Reed Guest
-
webclient.downloadfile
I've been toying with an asp.net diretory browser and have been trying to use system.net.webclient.downloadfile as a means to download files from... -
DefaultCredentials and WebClient
I'm trying to make a call inside an ASP.NET web application to an external quasi-web service (aka FrontPage Server Extensions): Dim rpcClient As... -
WebClient.DownloadData without cache
I am using WebClient to download a text file from the net every 2 minutes. The problem is that I think I am reading the file from cache since when... -
CookieContainer with WebClient
Any help appreciated ... I am trying to connect to a site that requires authentication through cookies, and be able to navigate through several... -
WebClient Problem
hi, i using WebClient to get the website. like string URL = "http://127.0.0.1/index.htm"; WebClient client = new WebClient(); Stream data =... -
Ken Cox [Microsoft MVP] #2
Re: Webclient w/ Proxy
Hi Steven,
Someone else may be able to help more with this, but it looks like you first
need to create a WebProxy object and use the GlobalProxySelection Class
How To Use WebClient Class To Make HTTP Requests
[url]http://support.microsoft.com/default.aspx?scid=kb;en-us;328820#XSLTH3129121122120121120120[/url]
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemnetwebproxyclasstopic.asp[/url]
private bool SetProxy(string ProxyName)
{
//Set the proxy
proxyObject = new WebProxy(ProxyName, true); // the true is to bypass
local address
// You can get the nondynamic proxy settings from Internet Explorer 5.5.
// by using the line below. This is what we use by default if you don't
set anything.
//WebProxy proxyObject = WebProxy.GetDefaultProxy();
// set the Credentials to the user's system credentials
// This will handle NTLM authentication.
// We will error trap for basic and then reqeust the username a password
proxyObject.Credentials = CredentialCache.DefaultCredentials;
GlobalProxySelection.Select = proxyObject;
return true;
}
"Steven J. Reed" <StevenJReed@discussions.microsoft.com> wrote in message
news:BA000BF3-EBD9-44DF-9372-F1A6546F3B33@microsoft.com...>I have a WebClient.OpenRead that is timing out on some client machines. I
> believe the problem may be Proxy settings on the client machine.
>
> How do I set proxy settings on a WebClient.OpenRead method?
>
>Ken Cox [Microsoft MVP] Guest



Reply With Quote

