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

It seems that CURLOPT_USERPWD is supported only since Curl version 7.1. According to the documentation, you can check the installed version of the Curl library by using:

print Net::Curl::version();

Replies are listed 'Best First'.
Re^6: LWP::Curl and CURLOPT_USERPWD
by wanderedinn (Sexton) on Jun 06, 2016 at 20:33 UTC

    libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

    So it would seem that is not the issue. Need to figure out how to get LWP::Curl to recognize CURLOPT_USERPWD

      The constant gets extracted from the libcurl library at build time, so maybe the detection goes wrong during perl Makefile.PL or make time...

        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.