Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use Proxy in WebBrowser Control
Message
From
17/07/2011 23:27:47
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01518399
Message ID:
01518412
Views:
51
>Check http://support.microsoft.com/kb/226473
>
>>
>>I'm creating an application that uses web browser control and I need to add features for
>>proxy support.
>>
>>I searched online and found an answer in C# that for the life of me I just can't convert to
>>VFP code.
>>
>>The routine uses wininet.dll -
>>
>>It calls the InternetSetOption method but I just don't know how to put in the parameters.
>>
>>I was able to make the code run in C# but again it isn't working in VFP..
>>
>>Here's what I've been playing with in VFP
>>
>>cProxy = "128.119.41.211:3128"
>>=InternetSetOption(0, 38, @cProxy, len(cProxy) )
>>thisform.obrowser.navigate("http://www.whatismyip.com/")
>>
>>It's suppose to change the proxy before the browser navigates to what's my ip dot com and
>>show proxy IP instead of the current IP.
>>
>>Help will be very much appreciated

When I set the proxy in internet explorer the web browser control follows and uses the proxy IP
but I just can't set the proxy inside VFP, are there any sample codes on this.

Thanks!
Previous
Reply
Map
View

Click here to load this message in the networking platform