Hello,
I have perl 5.6.1 built for Cygwin on WinME. I have a local LAN, connected to Internet through a proxy, and I want to run the following script:
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->proxy(http => `192.168.0.1:8081`);
$req = HTTP::Request->new(GET, "$resp = $ua->request($req);
$expl = $resp->error_as_HTML();
print($expl);
I get the error:
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
500 Can't connect to (Bad hostname '</BODY>
</HTML>
Please help,
Teodor
I have perl 5.6.1 built for Cygwin on WinME. I have a local LAN, connected to Internet through a proxy, and I want to run the following script:
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->proxy(http => `192.168.0.1:8081`);
$req = HTTP::Request->new(GET, "$resp = $ua->request($req);
$expl = $resp->error_as_HTML();
print($expl);
I get the error:
<HTML>
<HEAD><TITLE>An Error Occurred</TITLE></HEAD>
<BODY>
<H1>An Error Occurred</H1>
500 Can't connect to (Bad hostname '</BODY>
</HTML>
Please help,
Teodor