Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting html file into string via http
Message
From
09/12/2003 08:53:36
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Getting html file into string via http
Miscellaneous
Thread ID:
00857149
Message ID:
00857149
Views:
70
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
If everything seems to be going well, you obviously don't know what the hell is going on !
Next
Reply
Map
View

Click here to load this message in the networking platform