Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use Proxy in WebBrowser Control
Message
 
 
À
17/07/2011 12:18:52
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:
01518400
Vues:
71
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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform