cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Re: Perl interface broken with curl 7.7
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 10 Apr 2001 14:14:16 +0200 (MET DST)
On Tue, 10 Apr 2001, Georg Horn wrote:
(CC'ed back onto the libcurl list, from an off-list thread)
> I also started playing around with libcurl and the perl module last week.
My opinion is now quite clear: as low-level as possible. If you want
> At the moment i have defined an internal write callback that puts all the
This callback append-to-a-buffer stuff should probably be perl code. Right?
> After curl_easy_perform() finishes, i scan that buffer for '\r\n\r\n'
You can do this more efficently.
> Unfortunately, to make libcurl call the write callback function for the
No, you need to pass a non-zero value, it doesn't have to be a file handle.
> open HEAD, ">head.out";
Yes, just pass anything that isn't zero (or rather a NULL pointer).
> > Well, you can pass a different 'opaque pointer' to be used when writing
The 'FILE *' field. It isn't used by libcurl internally, only by the write
> Ok, you might build an oo interface if you like to, but can we please
The lowest layer interface couldn't possibly be OO since libcurl's C
I'll use that approach for the Java interface and Sterling Hughes has used it
-- Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77 ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol _______________________________________________ Curl-library mailing list Curl-library_at_lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/curl-libraryReceived on 2001-04-10
These mail archives are generated by hypermail.
Page updated November 12, 2010.
web site info