LWP not working with this site....

Discussion in 'Perl' started by marius_13, Sep 10, 2004.

  1. marius_13

    marius_13 Guest

    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();
     
    marius_13, Sep 10, 2004
    #1
    1. Advertising

  2. marius_13

    Guest

    "marius_13" <> wrote in message news:<5ea0d.84030$>...
    > 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.
     
    , Sep 10, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gaurav

    LWP:UserAgent not working ???

    Gaurav, Oct 3, 2003, in forum: Perl Misc
    Replies:
    9
    Views:
    549
    Gaurav
    Oct 7, 2003
  2. Dan
    Replies:
    3
    Views:
    137
    Brian Wakem
    Aug 19, 2005
  3. Larry Snider

    LWP::Simple Not Working

    Larry Snider, Dec 30, 2003, in forum: Perl Misc
    Replies:
    20
    Views:
    320
    Matt Garrish
    Jan 4, 2004
  4. James Thornton

    LWP POST Not Working

    James Thornton, Jul 1, 2004, in forum: Perl Misc
    Replies:
    0
    Views:
    141
    James Thornton
    Jul 1, 2004
  5. Perl Mon
    Replies:
    4
    Views:
    233
    Perl Mon
    Jan 11, 2005
Loading...

Share This Page