cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: setopt(CURLOPT_*,$curlopthash->{$option}) apparently doesn't work

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 8 Oct 2008 23:25:06 +0200 (CEST)

On Wed, 8 Oct 2008, Wurtz, Frederick (GE, Research, consultant) wrote:

> foreach my $option (keys(%$curlopthash)) {
> $curl->setopt($option,$curlopthash->{$option});

...

> Does somone have an idea why I would have to hard code the
> $curl-setopt(CURLOPT_*, <value>) calls locally, even when the passed-in
> hash is providing the same values?

Unfortunately I don't think we have many perl binding users around here so I'm
not sure you'll get a fine answer. Even worse: I don't even know of a better
place where such people are more likely to be found! ;-(

I hope someone proves me wrong.

-- 
  / daniel.haxx.se
Received on 2008-10-08