NetTalk Central

The Rest Of NetTalk => The Rest - Ask For Help => Topic started by: Alberto on June 03, 2010, 05:29:23 AM

Title: Reading a web page trhought a proxy
Post by: Alberto on June 03, 2010, 05:29:23 AM
Hi,
I have an app wich reads web pages, its working ok in many clients.
One client is using a proxy server and the app can not read the pages.
Help says that the class automátically reads the explorer proxy definiton.
Any thing I can check?
THanks
Alberto
Title: Re: Reading a web page trhought a proxy
Post by: Bruce on June 03, 2010, 07:04:34 AM
Which build of NetTalk are you using?

also - some proxies require authentication, so although it detects the proxy, it might not detect the authentication settings.
If possible capture the packet returned by the proxy and post here what it says.

cheers
Bruce
Title: Re: Reading a web page trhought a proxy
Post by: Alberto on June 03, 2010, 07:07:17 AM
No Bruce, its impossible but..
Wich properties must I set manually to use the proxy?
Thanks
Alberto

PD: I just receive another user call which says it has a proxy withot autentication, only dir and port and cant connect.

Attached goes the proxy settings.

[attachment deleted by admin]
Title: Re: Reading a web page trhought a proxy
Post by: Alberto on August 23, 2010, 07:39:42 AM
Please Bruce, I need to sort this problem!
NT5 PR28

If I use:
    ThisWebClient.CanUseProxy = 1  ! Can use Internet Explorer Proxy settings
It does not work.

If I use some code like:

ThisWebClient.ProxyServer = Glo:PARproxyURL
ThisWebClient.ProxyPort = Glo:PARproxyPuerto
if Glo:PARproxyUsu<>''
   AuthStr = clip(Glo:PARproxyUsu) & ':' & clip(Glo:PARproxyPass)
   AuthStrLen = len (clip(AuthStr))
   ThisWebClient.ProxyAuthorization = 'Basic ' & NetBase64Encode (clip(AuthStr), AuthStrLen)
END

It works.

PD: Where in IE or FB do you set the User and Pass for the ProxyAuthorization?

Thanks
Alberto
Title: Re: Reading a web page trhought a proxy
Post by: Bruce on August 24, 2010, 10:56:39 PM
Hi Alberto,

I'm a server guy, not a browser guy :).
In my apps i usually allow the users to enter the proxy information directly, rather than fetch them from IE. There's no guarantee the user uses IE, and there's no guarantee the settings will be right even if they are there.

cheers
Bruce