Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a html document programatically
Message
De
27/03/2003 07:53:15
Fabian Belo
Independent Developer
Argentine
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00770673
Message ID:
00770701
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>I'm trying to get the source text of a html page from within a VFP8 application. I just want the same thing as if you opened up the URL in a browser and selected view source. Is there any way of doing this?
>
>Thanks!!

Hi John;

There are several ways to do that. The simplest one:
Declare Long URLDownloadToFile in "urlmon";
Long pCaller,;
String szURL,;
String szFileName,;
Long dwReserved,;
Long lpfnCB
 
url="http://www.whateversite.com"
localfilename="LocalPathWhereToBeSaved"
ngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0) 
? ngRetVal
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform