Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15340 invoked from network); 28 Jan 2015 19:18:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 19:18:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.200 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.200 imap1-2.ox.privateemail.com Received: from [192.64.116.200] ([192.64.116.200:53485] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2E/49-44076-81639C45 for ; Wed, 28 Jan 2015 14:18:50 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id E4872B00085; Wed, 28 Jan 2015 14:18:44 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap1.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap1.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yhHKt00GKLu8; Wed, 28 Jan 2015 14:18:44 -0500 (EST) Received: from oa-res-26-240.wireless.abdn.ac.uk (oa-res-26-240.wireless.abdn.ac.uk [137.50.26.240]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 99DACB0007B; Wed, 28 Jan 2015 14:18:43 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54C934C1.6080601@php.net> Date: Wed, 28 Jan 2015 19:18:40 +0000 Cc: Levi Morrison , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <32FA0837-DCDD-4157-AD1A-3A9DE91B5FFB@ajf.me> References: <54C8D36E.7010803@php.net> <584E167F-CD06-4ACB-A33A-92DD178BCFD8@ajf.me> <54C934C1.6080601@php.net> To: Michael Wallner X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] [VOTE] pecl_http From: ajf@ajf.me (Andrea Faulds) Hi Michael, > On 28 Jan 2015, at 19:13, Michael Wallner wrote: >=20 > - Client >=20 > The http stream wrapper is a hack and the existing libcurl binding is > subpar. They could be improved separately, but that is not subject of > this RFC. >=20 > Currently only libcurl is implemented as a provider for the client > functionality. Provides most of the functionality of current libcurl. > Representation of the request and response how a client sees them. > Support for parallel requests and optional libev{,ent} support. If the client is merely a wrapper around cURL, what benefit does it = offer over ext/curl except a better API? Personally, I=E2=80=99ve never liked that PHP requires cURL for doing = HTTP requests. It=E2=80=99s 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=E2=80=99t think that the HTTP stream = wrappers are a =E2=80=9Chack=E2=80=9D - they=E2=80=99re what PHP should = have had all along. I think we should focus on improving them (so = there=E2=80=99s no need to use cURL) rather than adding yet another HTTP = client. Thanks. -- Andrea Faulds http://ajf.me/