Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Gathering Info from Web Pages
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01489134
Message ID:
01489451
Vues:
74
You can use Web Browser automation but it seems like your needs might be simpler and you can just use an HTTP client to do this.

A simple way to do this is:
lcUrl = "http://www.west-wind.com/
oHTTP = CREATE("Microsoft.XMLHTTP")
oHTTP.Open("GET",lcUrl,.F.)
oHTTP.Send()

lcHtml = oHttp.ResponseBody
If you need more control you can use wwHttp which provides easy POST interfaces, file uploads, authentication etc. etc.

http://www.west-wind.com/webconnection/wwClient_docs?page=_s9001zxih.htm

If you need to automate the Web Browser control the White Paper that Tore pointed at earlier has TONS of examples on how to do simple and complex things by driving the control. It's towards the end of the document that gets into the detail of IE automation and the Web Browser control.

http://www.west-wind.com/presentations/shellapi/shellapi.asp

Hope this helps,

+++ Rick ---


>Hi there,
>I Have the need of gathering info from a web page.
>I remember it was possible to gather the Html code from the web but I'd would be glad if someone recalled me how :)
>What I don't really know how to do is programmatically clicking on a link and to get the html code of the opened page.
>
>Thanks
>Alessio
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform