Re: [RFC] [VOTE] pecl_http

From: Date: Wed, 28 Jan 2015 20:20:53 +0000
Subject: Re: [RFC] [VOTE] pecl_http
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-81333@lists.php.net to get a copy of this message
Hi Michael, > On 28 Jan 2015, at 19:48, Michael Wallner <mike@php.net> wrote: > > On 28/01/15 20:18, Andrea Faulds wrote: >> >> If the client is merely a wrapper around cURL, what benefit does it >> offer over ext/curl except a better API? >> >> Personally, I’ve never liked that PHP requires cURL for doing HTTP >> requests. It’s a language made for the web, it should have built-in >> HTTP, and it should share code between its server-side HTTP and >> client-side HTTP stuff. I don’t think that the HTTP stream wrappers >> are a “hack” - they’re what PHP should have had all along. I think we >> should focus on improving them (so there’s no need to use cURL) >> rather than adding yet another HTTP client. > > Sounds a bit like NIH. Ah, no, I hope I’m not misunderstood that way. My objection to cURL is that I don’t feel we should be using separate codebases for HTTP client stuff vs. HTTP server stuff. It doesn’t feel right to me that in such a web-focussed language we should have to use an external library for making HTTP requests - why can’t we use PHP’s own HTTP capabilities? IMO, they should be a single codebase. It’s needless duplication otherwise. Thanks. -- Andrea Faulds http://ajf.me/

« previous php.internals (#81333) next »