hi,

If I put this on Location: bar on the Netscape browser, I get the result
of the search as expected (try it).
http://www.volunteermatch.com/results/results.jtmpl?zip=55555&radius=60&when=30&ongoing=b&category=Everything&submit=Search



But If I try to do this via LWP package, I didn't get the result page,
but the FORM that is used to create this query(something is going
wrong). Why ?!?!? What also is nesecary to send to the Web server, some
Headers or what ?? Which ?
I even got this result if I try the same query via telnet ?

#!/usr/bin/perl
use LWP::UserAgent;
my $UA = new LWP::UserAgent;
#$UA->agent("Agent/007:)");

my $req = HTTP::Request->new(GET =>
'http://www.volunteermatch.com/results/results.jtmpl?zip=55555&radius=60&when=30&ongoing=b&category=Everything&submit=Search'
);
my $result = $UA->request($req);
print $req->as_string;
 if ($result->is_success)
  {
   $bb = $result->content . "<BR>\n";
   $bb =~ s/^.*<body bg(.*)<\/body>.*$/$1/is;
   print $bb;
  }
   else {print "no success\n";}




THANX
=====
iVAN
[EMAIL PROTECTED]
=====

Reply via email to