Archived Forum Post

Index of archived forum posts

Question:

Http class PROXY_AUTH_REQUIRED

Oct 24 '12 at 10:48

After setting the proxy properties, the proxy site denied the connection Ex. // after http creation and unlock http.ProxyDomain = "proxyaddress.com";

http.ProxyPort = 3128;

string html = http.QuickGetStr("sometext.txt");

// in html get the next page, instead the file contents of sometext.txt... // the contents of html is like

This Page Cannot Be Displayed Authentication is required to access the Internet using this system. A valid user ID and password must be entered when prompted. Notification codes: (1, PROXY_AUTH_REQUIRED)

How can i set the correct credentials to go through this kind of proxy? Any ideas?

Thanks


Answer

Set the http.ProxyLogin and ProxyPassword properties.