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

How would you supply creds(auth) with this?

Replies are listed 'Best First'.
Re^3: http get with perl, help needed
by JavaFan (Canon) on Oct 17, 2008 at 14:11 UTC
    I'd use either LWP::UserAgent, and define a get_basic_credentials method; use LWP::Simple and call $ua->credentials(); read the manual page of wget and detect it has --http-user and --http-passwd options, and it also willing to read a username/password from configuration files; or use WWW::Mechanize and call credentials().
      Thank you very much for your reponses. Im using a ua, but im going against windows auth. Still looking around on how to make this work.
      $ua->credentials("http://test.com:80", "test", 'user', 'pass');