Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:127840 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by lists.php.net (Postfix) with ESMTPS id 202EB1A00BD for ; Wed, 2 Jul 2025 16:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1751472535; bh=M7LwlMxaRTDZiEJj0Ag+tZUUfZgKnvpVkrdBpcHBmCg=; h=Date:From:To:In-Reply-To:References:Subject:From; b=ITKniBxVJZHIbgvzDKNJrfV8pNqYXMdwHG5edPE2SvxCRZqSQHmMG0/tFsh94iPyd 0cIO9NvsnMtREx4s7Yml9lIBJYot2G8Nn2fonhRa4EFAct7J4krvdUm+y0D9Xo9jND ZrkWkWyRMTnBUxa1Ij6Y1JGFWBuJ7zE1ant+EiSwP5cl6FnhOU3JMxUv/4pq8wBg1X RNj9FUUcY5jGodEch1tNuvRB7BxBmkWNAdEzD/UVtGD7JKFNH5t4dQWsCDY2MruRKo L7FRNBJY4Udu6f5ieyr+FyPvdbB7iP4BIcCLzaauhOsOcacH/kc4u3/Gvb1MXq2f0d P7Q8mjvTxPJAg== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id A1B1718020B for ; Wed, 2 Jul 2025 16:08:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE autolearn=no autolearn_force=no version=4.0.1 X-Spam-Virus: Error (Cannot connect to unix socket '/var/run/clamav/clamd.ctl': connect: Connection refused) X-Envelope-From: Received: from fout-a8-smtp.messagingengine.com (fout-a8-smtp.messagingengine.com [103.168.172.151]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Wed, 2 Jul 2025 16:08:51 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 6D43AEC0454 for ; Wed, 2 Jul 2025 12:10:44 -0400 (EDT) Received: from phl-imap-02 ([10.202.2.81]) by phl-compute-10.internal (MEProxy); Wed, 02 Jul 2025 12:10:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= garfieldtech.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=fm2; t=1751472644; x=1751559044; bh=R74go7XUGCGtMrtITa/hn gIRUeLaQPLteUbwCtygngE=; b=MnKh3LhdMMEHLhXZDtoRuRH2k3wGouQOYJQ/F abFC0Dn67egqUKuS2RpwoJpZ4+kA4OYOHtN1RI/lJYhCemmQ1T0jg8L1iq3TYV3s OMDtTnrQcZ/qiIMBi3zJGgB2ZZdJ5RjE1Cqc+kdDXtiyhJUyUwpZf25MdBo41j3r XQDqmDtl+FyKYSTwakJ1/LoVPeOkaree4b8Mm1V+adqZujUiZ1Q02G+OWkoNaUAF wJVFlbAvV+FjPAilYeWeGjG3CQ7tSFmXd0ir5Ylgu25868KPxV47ZjhEGfv7uuVg 5FIIIIV99YflvQaz6M7XdnLm+zdYia7v+FbrbWBOkrV1lT1IA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1751472644; x=1751559044; bh=R 74go7XUGCGtMrtITa/hngIRUeLaQPLteUbwCtygngE=; b=II0gDzaqRf9tcMtx8 sRcixUc9+z8ONs4y5B7m1xzrebULwcd6fx/ov1mpucDSKFqg1SbbHPpdHDQTgt8r L+AbqDSkV1RsBI9Rj4rEgWn75ofcUGRPwi/ZEDY15axKb4+7d8VqBELtR2aDvl87 VZ8p0/T7yRiY2wzbrXbbApyfFnnCgoyd5uwADrK46NmuoejkVGXXic9p/K3y6BxF RFHwBRtHORTRqUix+PpfvMG3GXUklSwIKTiGnSSYYx7kw2vCr2iHlAfr6GDVlwhB pYbi1FEVLjaF3XCwJMKFZ8yohVZo0TUcTet0hxeXh8j1L0yWxceCuDQ8zk9HHLl8 60Btw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddujeekgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvkfgjfhfutgfgsehtjeertdertddtnecuhfhrohhmpedfnfgrrhhrhicu ifgrrhhfihgvlhgufdcuoehlrghrrhihsehgrghrfhhivghlughtvggthhdrtghomheqne cuggftrfgrthhtvghrnhepudegvdelgfeugeehfeejteffudevleethfefgeejffffleeg tddtveekgeekudfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomheplhgrrhhrhiesghgrrhhfihgvlhguthgvtghhrdgtohhmpdhnsggprhgtphht thhopedupdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehinhhtvghrnhgrlhhsse hlihhsthhsrdhphhhprdhnvght X-ME-Proxy: Feedback-ID: i8414410d:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 20158700065; Wed, 2 Jul 2025 12:10:44 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net x-ms-reactions: disallow MIME-Version: 1.0 X-ThreadId: T6541924c602fb011 Date: Wed, 02 Jul 2025 11:10:23 -0500 To: "php internals" Message-ID: In-Reply-To: References: Subject: Re: [PHP-DEV] [RFC][DISCUSSION] Object-oriented curl API v2 Content-Type: text/plain Content-Transfer-Encoding: 7bit From: larry@garfieldtech.com ("Larry Garfield") On Wed, Jul 2, 2025, at 10:48 AM, Eric Norris wrote: > Having thought about this some more, while I'm still feeling somewhat > positive about my suggestion I'm just not sure it's the best way to > proceed. I started to sketch what a BasicHttpHandle class would look > like, and I'm stuck on how to get data about the response out of the > class. Another thing I just realized. IF we have an in-core HTTP client we intend for end-users to use (as opposed to just a less-sucky Curl that only Guzzle and Symfony to use), it needs to have a defined interface to go along with it so that people can mock it for testing purposes. I would consider this a hard requirement for any "user facing" HTTP client. --Larry Garfield