Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
English
Determining proxy server address
Message
From
15/12/2002 20:02:58
 
 
To
11/12/2002 15:36:49
General information
Fórum:
Visual FoxPro
Category:
Aplicações para Internet
Miscellaneous
ID da thread:
00732025
ID da mensagem:
00733203
Views:
22
>How can I determine if a proxy server is being used? And how do I get the IP address of the proxy server. In other words, I need to scrape the values for the Control Panel\Internet Properties\Local Area Network screen for Internet Explorer.
>TIA
>Sammie


I asked around and Alex Feinman [MVP-Windows Media Center] gave me this info:

Proxy settings are stored in
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\DefaultConnectionSettings
It is a chunk of binary data.
3rd dword has bit 1 set (dw & 0x00000002) if proxy is enabled
4th dword is a length of a character string that follows it and contains list of proxy addresses per protocol:

ftp:10.10.10.1:80;http:10.10.10.2:80;

Following this is a DWORD counter and a string of that length containing a semicolon-delimited list of domains to be accessed directly

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Responder
Mapa
View

Click here to load this message in the networking platform