I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-09-13 10:39:35.96406-07 by bros3143
digest auth with WWW-Curl-Easy
Hi, I'm attempting to do Digest auth in perl using the curl module (version 4.13). Currently when the server sends the 401 and closes the connection the perl client doesn't re-try with the auth credentials. code snippet with curl options:
my $curl = WWW::Curl::Easy->new; $curl->setopt(CURLOPT_HTTPGET, 1); $curl->setopt(CURLOPT_HTTPVERION_1_1, 1); $curl->setopt(CURLOPT_HTTPAUTH, CURLAUTH_DIGEST); $curl->setopt(CURLOPT_USERPWD, "admin:system"); $curl->setopt(CURLOPT_PRIVATE,$curlId); $curl->setopt(CURLOPT_URL, $url); $curl->setopt(CURLOPT_VERBOSE, 1); if (@headers){ $curl->setopt(CURLOPT_HTTPHEADER, \@headers); } $curl->perform;
Thanks
Direct Responses: Write a response