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

Thanks, I tried that and got:

Argument "CURLOPT_USERPWD" isn't numeric in subroutine entry at ./biphttppost.pl line 8 (#2) (W numeric) The indicated string was fed as an argument to an operator that expected a numeric value instead. If you're fortunate the message will identify which operator was so unfortunate.

Replies are listed 'Best First'.
Re^3: LWP::Curl and CURLOPT_USERPWD
by Corion (Patriarch) on Jun 06, 2016 at 18:08 UTC

    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.

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