Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81333 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37275 invoked from network); 28 Jan 2015 20:21:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jan 2015 20:21:01 -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:51544] helo=imap1-2.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/0E-44076-CA449C45 for ; Wed, 28 Jan 2015 15:21:01 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 83450B0008E; Wed, 28 Jan 2015 15:20:57 -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 bdZrWYnI_jEB; Wed, 28 Jan 2015 15:20:57 -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 6FED2B00087; Wed, 28 Jan 2015 15:20:56 -0500 (EST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <54C93D29.8070303@php.net> Date: Wed, 28 Jan 2015 20:20:53 +0000 Cc: Levi Morrison , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: <9D3F8E45-CFEA-401F-BF59-DCC18DA4F1FC@ajf.me> References: <54C8D36E.7010803@php.net> <584E167F-CD06-4ACB-A33A-92DD178BCFD8@ajf.me> <54C934C1.6080601@php.net> <32FA0837-DCDD-4157-AD1A-3A9DE91B5FFB@ajf.me> <54C93D29.8070303@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:48, Michael Wallner wrote: >=20 > On 28/01/15 20:18, Andrea Faulds wrote: >>=20 >> If the client is merely a wrapper around cURL, what benefit does it >> offer over ext/curl except a better API? >>=20 >> 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. >=20 > Sounds a bit like NIH. Ah, no, I hope I=E2=80=99m not misunderstood that way. My objection to = cURL is that I don=E2=80=99t feel we should be using separate codebases = for HTTP client stuff vs. HTTP server stuff. It doesn=E2=80=99t 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=E2=80=99t we use = PHP=E2=80=99s own HTTP capabilities? IMO, they should be a single = codebase. It=E2=80=99s needless duplication otherwise. Thanks. -- Andrea Faulds http://ajf.me/