Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting a html document programatically
Message
From
27/03/2003 07:53:15
Fabian Belo
Independent Developer
Argentina
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00770673
Message ID:
00770701
Views:
12
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform