in reply to Re: http POST + authentication
in thread http POST + authentication

In the docs of LWP::UserAgent I read:

$ua->credentials($netloc, $realm, $uname, $pass)
Set the user name and password to be used for a realm.

So it seems that you need to furnish the realm (i.e. the name of the protected area of the website)and the "netloc" (whatever that may be).

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law

Replies are listed 'Best First'.
Re: Re: Re: http POST + authentication
by Grateful_Dude (Acolyte) on Dec 30, 2002 at 19:30 UTC
    I saw that looking through the libwww-perl mailing list archives, here's what they look like:
    $ua->credentials(< 'servername:portnumber', 'realm-name', 'username' => 'password' );
    NOTE: You have to specify the port number above!
      Yarg... With the credentials piece, the final solution was already in my hand. A boneheaded developer at the other end included a hidden form element with value="PLACEHOLDER_NOTUSEDANYMORE" and decided that this was a required field, not excepting the form without it.

      thanks all for your help!!
      Grateful_Dude