in reply to Re: LWP::Curl and CURLOPT_USERPWD
in thread LWP::Curl and CURLOPT_USERPWD

I don't see a reference to authorization_basic() for LWP::Curl. I'm doing a $lwpcurl->post() I assume the authentication would be a part of the post method.

I had hoped I could include the username and password as curl will accept it with userid:password@http://... but it does not like that either.

Replies are listed 'Best First'.
Re^3: LWP::Curl and CURLOPT_USERPWD
by NetWallah (Canon) on Jun 06, 2016 at 20:34 UTC
    Hmm - you are right - looks like LWP::Curl does not implement an authentication mechanism. You may have to use plain LWP.

            This is not an optical illusion, it just looks like one.

      I have been able to resolve the 401 error by including the user id and password in the url as in http://username:password@hostname:4444

      So it appears I have a viable solution now. Thanks for all the assistance.

        Passing sensitive data over a plain-text protocol like http is not good practice.