cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: http status code early?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 6 Apr 2003 14:27:05 +0200 (CEST)

On Fri, 4 Apr 2003, David Boyce wrote:

> You're referring here to CURLOPT_HEADERFUNCTION? This is called once per
> header, right? I'd missed that and, yes, it would work. Having a one-time,
> general purpose hook to get in between the headers and the body might be a
> bit more convenient but might also be seen as creeping featurism. I can
> certainly live without it.

Right, I can't see any point in adding such a callback.

You could instead yourself count the number of body-write callbacks so that
when it is called for the first time, you know that all headers have been
received already.

-- 
 Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
Received on 2003-04-06