curl-users
Re: libcurl-7.8 PUT problem
Date: Mon, 18 Jun 2001 16:42:40 +0200 (CEST)
On Fri, 15 Jun 2001, Cris Bailiff wrote:
hello,
sorry for replying so late, I'm not at my office.
> Hi (Samuel?),
>
> I'd like to look into your perl problem - can you try changing:
>
>
> my $fh_in = new IO::File || die "error: $!\n";
> $fh_in->open("<$file") || die "error: $!\n";
>
> from using IO::File to using a 'normal' perl GLOB:
>
> open FH_IN,"<$file" or die "error: $!\n";
>
> and then try using FH_IN instead of $fh_in in your CURLOPT_INFILE
> setting?
>
It is the same when I use FH_IN.
old version was ok, so I don't understand what's wrong!
> I suspect the problem is that the new Curl::easy has 'smarts' to deal
> with the curl callback feature for perl functions, which is being
> confused, as you are setting a callback file handle (opaque pointer)
> which is not a GLOB, but then not supplying a perl callback function.
> The default STDIO 'write' function actually MUST have a FILE * pointer
> passed to it, which Curl::easy attempts to make from a GLOB, but that is
> probably not going to work if you just pass in some perl object ref.
>
> I can't work on this straight away, but if you can answer this, it will
> help me when I do get to look into it properly...
>
> Cris
>
Received on 2001-06-18