Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use Proxy in WebBrowser Control
Message
From
17/07/2011 12:18:52
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
How to use Proxy in WebBrowser Control
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01518399
Message ID:
01518399
Views:
1119
Hi All,

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
Next
Reply
Map
View

Click here to load this message in the networking platform