T
TheMaxx
I try getting response from web site through proxy in my domain:
WebClient wc = new WebClient();
WebProxy wProxy = new WebProxy();
CredentialCache cc = new CredentialCache();
NetworkCredential nc = new NetworkCredential("myUsername", "myPassword",
"myDomain");
cc.Add("myProxy.domain.local", 8080, "Basic", nc);
// should this be: cc.Add("http://myProxy.domain.local", 8080, "Basic", nc);
?? got same error
wProxy.Credentials = cc;
wc.Proxy = wProxy;
string html = wc.DownloadString(new Uri("http://www.google.com/"));
MessageBox.Show(this, html);
I get error:
Message : Unable to connect to the remote server
InnerException : A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection
failed because connected host has failed to respond
Is there a way to test just getting to proxy server and/or passing through
it?
Thanx.
WebClient wc = new WebClient();
WebProxy wProxy = new WebProxy();
CredentialCache cc = new CredentialCache();
NetworkCredential nc = new NetworkCredential("myUsername", "myPassword",
"myDomain");
cc.Add("myProxy.domain.local", 8080, "Basic", nc);
// should this be: cc.Add("http://myProxy.domain.local", 8080, "Basic", nc);
?? got same error
wProxy.Credentials = cc;
wc.Proxy = wProxy;
string html = wc.DownloadString(new Uri("http://www.google.com/"));
MessageBox.Show(this, html);
I get error:
Message : Unable to connect to the remote server
InnerException : A connection attempt failed because the connected party did
not properly respond after a period of time, or established connection
failed because connected host has failed to respond
Is there a way to test just getting to proxy server and/or passing through
it?
Thanx.