wanderedinn has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to use CURLOPT_USERPWD with LWP::Curl. I need to pass userid and password. I've attempted:
my $lwpcurl = LWP::Curl->new( CURLOPT_USERPWD => 'USER:password', );
But I am still receiving a 401 error. Is this supported by LWP::Curl? Do I need to use a different module? I need to do an https post and provide username and password. Thanks. Geoffrey
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP::Curl and CURLOPT_USERPWD
by Corion (Patriarch) on Jun 06, 2016 at 17:57 UTC | |
by wanderedinn (Sexton) on Jun 06, 2016 at 18:07 UTC | |
by Corion (Patriarch) on Jun 06, 2016 at 18:08 UTC | |
by wanderedinn (Sexton) on Jun 06, 2016 at 19:23 UTC | |
by Corion (Patriarch) on Jun 06, 2016 at 20:23 UTC | |
| |
|
Re: LWP::Curl and CURLOPT_USERPWD
by NetWallah (Canon) on Jun 06, 2016 at 19:41 UTC | |
by wanderedinn (Sexton) on Jun 06, 2016 at 20:12 UTC | |
by NetWallah (Canon) on Jun 06, 2016 at 20:34 UTC | |
by wanderedinn (Sexton) on Jun 06, 2016 at 20:44 UTC | |
by Don Coyote (Hermit) on Jun 07, 2016 at 06:24 UTC | |
|