LWP not working with this site....

M

marius_13

This just hangs trying to get to nfl.com. Any thoughts?

#!/usr/bin/perl

use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$req = new HTTP::Request GET => "http://www.nfl.com/scores.shtml";
$res = $ua->request($req);
$res->Is_Success() || die "Couldn't Connect";
print $res->Content();
 
N

nobull

marius_13 said:
This just hangs trying to get to nfl.com. Any thoughts?

#!/usr/bin/perl

use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$req = new HTTP::Request GET => "http://www.nfl.com/scores.shtml";
$res = $ua->request($req);
$res->Is_Success() || die "Couldn't Connect";
print $res->Content();

After correcting the obvious typos (Perl identifiers are case
sensative) it works just fine here.

What have you done to try to partition your problem? Have you tried
using LWP to access other sites? Presumably not or you'd have fixed
the typos.

Have you tried to access this site using a raw TCP session? Using a
browser? Perhaps you've got firwall issues.

This newsgroup does not exist (see FAQ). Please do not start threads
here.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top