cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Perl & Curl

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 13 Feb 2008 13:17:39 -0800

On Wed, Feb 13, 2008 at 02:09:09PM -0800, Jeremy Rottman wrote:
> I am using CURLAUTH_DIGEST. Here is the code that I am currently testing
> with.
>
> use WWW::Curl::easy;
> my $site = "http://rets.armls.mlsrets.com/rets/login";
> my $user = "******";
> my $pass = "******";
> my $curl= new WWW::Curl::easy;
> $curl->setopt(CURLOPT_URL, $site);
> $curl->setopt(CURLOPT_VERBOSE,1);
> #$curl->setopt(CURLOPT_RETURNTRANSFER, 1);
> $curl->setopt(CURLOPT_USERPWD,"$user:$pass");
> $curl->setopt(CURLOPT_HTTPAUTH,CURLAUTH_DIGEST);
> $curl->perform;
> my $info = $curl->getinfo(CURLINFO_RESPONSE_CODE);

If that's the case, then either the perl binding doesn't support that
option (check the return code from the setopt call) or your libcurl
has been built without support for Digest.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-02-13