Ask a Question related to PERL Modules, Design and Development.
-
Clifford Snow #1
LWP connect failing - bad hostname
I have two different scripts that use the LWP module that stopped
working yesterday, June 6. I ran the following script to verify that
the problem was the LWP module:
#!/usr/bin/perl
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$req = HTTP::Request->new(GET => 'http://www.linpro.no/lwp');
$res = $ua->request($req);
# check the outcome
if ($res->is_success) {
print $res->content;
} else {
print "Error: " . $res->status_line . "\n";
}
The error message returned is
"Error: 500 Can't connect to [url]www.linpro.no:80[/url]
(Bad hostname 'www.linpro.no')"
I verified that I can connect to the site using firefox and ping
so I believe that dns is working properly.
I'm running perl v5.8.5 and libwww-perl-5.805.
The only thing that changed on my system was the updating of mozilla,
firefox, xorg and squiremail.
Thanks,
Clifford
Clifford Snow Guest
-
MySQL driver failing to connect
I was using the MySQL driver 3.51 to upload an ACCESS table to a MySQL table on my host. Then I world read the table with ColdFusion MX. Evreything... -
failing to connect to MySQL
WinXP Pro CFMX 6.1(using built in webserver) MySQL 4.1.13a-nt via TCP/IP Okay, I have tried connecting to my DB following the instructions at... -
hostname
Is there away to find all of the hostname on a lan with use of perl? Thanks, Thomas -
hostname for LWP
Hi - I just installed perl-5.8.0 from source, in the shell (perl -MCPAN -e shell) I tried to "install LWP" but had some problems until I added... -
Sendmail 8.9.3 - need to remove hostname from @hostname.domain.com
I just upgraded from 432 to 433. Along with this came Sendmail8.9.3. I have changed the new sendmail.cf file with the same changes as the previous... -
Clifford Snow #2
Re: LWP connect failing - bad hostname -FIXED
On Wed, 07 Jun 2006 09:28:15 -0700, Clifford Snow wrote:
Found the problem - it was a corrupted /etc/hosts file that I had modified> I have two different scripts that use the LWP module that stopped
> working yesterday, June 6. I ran the following script to verify that
> the problem was the LWP module:
>
> #!/usr/bin/perl
> use LWP::UserAgent;
> $ua = LWP::UserAgent->new;
>
> $req = HTTP::Request->new(GET => 'http://www.linpro.no/lwp');
>
> $res = $ua->request($req);
>
> # check the outcome
> if ($res->is_success) {
> print $res->content;
> } else {
> print "Error: " . $res->status_line . "\n";
> }
>
> The error message returned is
> "Error: 500 Can't connect to [url]www.linpro.no:80[/url]
> (Bad hostname 'www.linpro.no')"
>
> I verified that I can connect to the site using firefox and ping
> so I believe that dns is working properly.
>
> I'm running perl v5.8.5 and libwww-perl-5.805.
>
> The only thing that changed on my system was the updating of mozilla,
> firefox, xorg and squiremail.
>
yesterday. Strange how it screwed up LWP but everything else worked fine.
I'm posting this just in case someone else has similar problems.
Clifford
Clifford Snow Guest



Reply With Quote

