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

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?

Replies are listed 'Best First'.
Re^5: http get with perl, help needed
by perlnewb123 (Sexton) on Oct 16, 2008 at 22:03 UTC
    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.

        Not getting anything back from the reply other than the 401, if I run a trace that should give me the realm?