An alternative that I use to do something very similar is to use the HTTP toolset developed by West Wind. Dislike their version of a FoxWeb product, (West Wind Connection), but some of the tools they have developed and offer as shareware are extremely useful.
They are written in FoxPro as classes so implemenging in a script is a snap. Go to
www.west-wind.com and look for the wwIPStuff class, might be hidden in one of the options at the bottom of the page. It's shareware but if you find it useful do pay the little stipend they suggest.
You might also look at the XML tools as well, equally easy to implement and also written as FoxPro classes.
Joe Bigelow
HV/Net
Sent by John Faithfull on 04/07/2003 06:15:56 AM:
Hello,
As I know a lot about Foxpro, but little about PHP or PERL, I'd like to be able to do this in Foxpro/Foxweb if possible, rather than blunder about with new languages.
Can you suggest a way of reading the contents of a Web page into a Foxpro character string? Sort of like a filetostr() for urls...
I want to combine data from several web pages and redisplay them as a single page. The idea is to be able to provide a single form which will search and return results from several unrelated CGI-based databases in a single page. Copyright is not an issue, but there are no resources to tweak the functionality of the various search sites, so I need to be able to do all the tweaking either client-side, or on my Foxweb server.
If I can read each results page into a separate character variable, the rest of the manipulation should be easy.
Any suggestions?
John Faithfull
Hunterian Museum
University of GLasgow