curl-and-php
Re: Dealing with Server Push
Date: Wed, 12 Mar 2003 18:10:17 +0100 (CET)
On Wed, 12 Mar 2003, Juergen Schreck wrote:
> 1. Does CURL handle the Content-Type: multipart/x-mixed-replace;
It does not "handle" it in any particular way. It receives it just as it
receives any kind of data.
> 2. Alternatively - How do I make libcurl (using the PHP implementation)
> stream it's input directly out to the browser - including headers - rather
> than retrieving results into a variable and then return IT after the
> retrieval is complete.
libcurl (as in the generic library used by whatever), does indeed receive the
data in chunks (passed on to a callback) and the PHP binding is written to
then append the data to a variable that is later returned back.
I don't know if you can take advantage of this piece-by-piece receiving or
not using the current interface provided by the PHP/CURL module.
-- Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs. ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open! Get cracking and register here for some mind boggling fun and the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031enReceived on 2003-03-12