Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Proxy in WebBrowser Control
Message
De
17/07/2011 23:27:47
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01518399
Message ID:
01518412
Vues:
52
>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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform