curl-library
Re: CURLOPT_HEADERFUNCTION with non-HTTP response ?
Date: Mon, 11 Nov 2002 11:37:02 +0100 (MET)
On Sun, 10 Nov 2002, ruffnex wrote:
> 1. A patch below will allow Shoutcast/Icecast streams to be treated as a
> normal HTTP 200 response. It is applied to v7.10.1 "lib/transfer.c".
> Perhaps you could include this in future with a #ifdef SHOUTCAST.
Well, I could do that but wouldn't it be rather annoying? Wouldn't it be
better to perhaps offer a custom check to be added by the application or
something? That way you wouldn't need to build a special version of the lib
every time we release a new release...
> 2. Callbacks are invoked correctly, but if printing debug messages, stdout
> must be flushed else they never appear (hence I thought the callbacks
> weren' t being invoked). In this case, flushing seems necessary for
> streaming data, unlike chunky http data.
stdout is generally buffered, so this is what you get when using it.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sfReceived on 2002-11-11