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

Most likely, you will need to import CURLOPT_USERPWD from Net::Curl or Net::Curl::Easy. In fact, Curl::LWP has this line at its top:

use Net::Curl::Easy qw(:constants)

Maybe by adding that same line to your code you get the values for CURLOPT_USERPWD imported into your code as well.

Replies are listed 'Best First'.
Re^4: LWP::Curl and CURLOPT_USERPWD
by wanderedinn (Sexton) on Jun 06, 2016 at 19:23 UTC
    That does not seem to address the issue either. Getting the same error message.

      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();

        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