Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting html file into string via http
Message
 
 
À
09/12/2003 08:53:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00857149
Message ID:
00857155
Vues:
36
This message has been marked as the solution to the initial question of the thread.
Mark,

You can download ReadUrl program by David Frankenbach from http://www.geocities.com/df_foxpro/qgen008.htm. We use it and it works well.
lcUrl = ReadUrl("http://www.Website.com/SomeFile.htm")
STRTOFILE(lcUrl, ...)
>Hi,
>
>There exists a VFP command FileToStr() that
>gets a txt file and puts its into a string:
>e.g.
>cFileName = "c:\data\somefile.txt"
>cFileContents = FileToStr( cFileName )
>
>This doesn't work when for example
>cFileName = "http://www.Website.com/SomeFile.htm"
>or cFileName ="http://192.168.1.1/SomeFile.htm"
>
>My problem is now that I need the same functionnality as FileToStr() but by using the http protocol. (Like a webservice that returns html). I already experimented with automation (creating a hyperlink object oLink,followed by a oLink.NavigateTo) but this didn't work and results in an instance of internet explorer that I don't need.
>
>Can anybody help?
>
>
>Thanks in advance,
>
>Mark
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform