Re: Streams: FTP/HTTP wrapper gurus wanted
| From: | Shane Caraveo | Date: | Sun, 11 Aug 2002 17:49:49 +0000 |
| Subject: | Re: Streams: FTP/HTTP wrapper gurus wanted | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86719@lists.php.net to get a copy of this message | ||
Wez,
I haven't looked into the streams stuff much, but have had it in the back of my head a lot. Does the streams implementation support 'filters' on streams? With this, whatever gets written to a stream would go through a filter prior to going across the wire. Reason I ask is that this would be a perfect fit for protocols like DIME.
Shane
Wez Furlong wrote:
Hi Sterling, I'm not sure :-) I'm 50/50 on integrating curl, because I know that it supports more features than the current wrappers, but I'm not sure if it supports a rich enough API to do the things that the streams API supports. So, I need your opinion: Does libcurl allow you to have progress notification callbacks, so that scripts/extensions can act on notifications such as mime type, file size, and overall progress? (I know it can print out a progress bar, but we need something a little bit more useful than that :-) Can we wrap a curl handle up into a stream without too much trouble? Is libcurl thread-safe? The other stuff should be relatively easy (like HEAD requests and so on), but if those two things look too hard, I'd be tempted to spend the effort on improving the streams code instead of trying to force libcurl to fit into streams. Last time I looked, I didn't like the look of libcurl, but it's been a while, so things might be better now. Opinions please! :-) --Wez. On 08/11/02, "Sterling Hughes" <sterling@bumblebury.com> wrote:Wez, This seems like an ideal time to me to start working on the bundling of cURL into PHP, no?