in reply to Re^2: http get with perl, help needed
in thread http get with perl, help needed

Oops, that should be $ua->get(...) rather $ua->request(...)

Replies are listed 'Best First'.
Re^4: http get with perl, help needed
by perlnewb123 (Sexton) on Oct 16, 2008 at 21:13 UTC
    THANKS!!!! Now Im getting a 401 Unauthorized. I shouldnt have to pass a uid/password to this site, but if I need to how would I pass the creds in this script?
      I guess I would use: $ua->credentials, but not sure how to format it to my url.
        $ua->credentials("test.test.com:80", "Realm", $user, $passwd);

        The realm is supplied in the header of the 401 reply.