Re[2]: cgi and mod_perl-1.26, Apache-1.27, perl-5.8.0, FreeBSD failwith 'The document contained no data'
Lee Goddard <home <at> LeeGoddard.com>
2003-02-02 19:37:06 GMT
Hi George,
I've not seen any of this thread other than what's
below, but have you had all the headers output correctly?
Try running this after setting $url, and see what you get:
use LWP::UserAgent;
$url = "http://195.117.126.24";
$ua = LWP::UserAgent->new;
$req = new HTTP::Request('GET', $url); # Format URL request
$res = $ua->request($req);
if (not $res->is_success()) {
die "...failed:\n" . $res->error_as_HTML
}
warn $res->headers_as_string;
warn $res->content;
#open OUT, ">/test.html";
#print OUT $res->content;
#close OUT;
exit;
Lee
On Sunday, February 2, 2003 at 7:42:12 PM, you wrote:
GS> Hi Stas,
GS> Thanks for your reply.
(Continue reading)