NetTalk Central

Author Topic: Reading a web page trhought a proxy  (Read 8790 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Reading a web page trhought a proxy
« 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
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Reading a web page trhought a proxy
« Reply #1 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

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Reading a web page trhought a proxy
« Reply #2 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]
« Last Edit: June 03, 2010, 09:37:27 AM by michelis »
-----------
Regards
Alberto

Alberto

  • Hero Member
  • *****
  • Posts: 1846
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: Reading a web page trhought a proxy
« Reply #3 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
« Last Edit: August 23, 2010, 11:14:17 AM by michelis »
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Reading a web page trhought a proxy
« Reply #4 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