Two solutions: this came in first from Jean-Paul
--------------------------------------------------------------
I never had any luck with &FETCH().
I went through the code several times, and I never succeeded.
So I gave up, and now I use the Module LWP from CPAN.
It is very simple to use
.........
my $URL = "<http://www.wherever.net>http://www.wherever.net";
use LWP::Simple;
my $page = get($URL) || "Couldn't get $URL $!";
print "Content-type: text/html\n\n", $page;
Good Luck,
Jean-Paul
Claudio responded:
--------------------------------------------------------------
First of all in woda 4.2 FETCH works just fine!
Second, the purpose of FETCH is not to grab any web page but it can be used to make queries to other woda databases that are on different servers (similarly to SQL). When you FETCH a search on a different server FETCH returns only the list of fields found cutting out headers and footers so that you can show the search results as if the database would be resident on the server where the cgi script is running.
Usually you do:
print myheader
make mysearch
print mysearch
print myfooter
(all on the same server)
with FETCH you can do
print myheader
$search=FETCH(url to query a different server running woda)
print $search
print myfooter
(nobody will see that you are using a different database on a different server)
You know, pizza is wonderful because it is so good just with tomatoes and mozzarella. When you start adding any eatable topping, it becomes pizzahut!
take care,
claudio
--------------------------------------------------------------
This link uses Fetch in the way that Claudio describes