Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:96255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78014 invoked from network); 5 Oct 2016 18:20:42 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Oct 2016 18:20:42 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.67 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.67 mail-wm0-f67.google.com Received: from [74.125.82.67] ([74.125.82.67:34632] helo=mail-wm0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/96-23443-97445F75 for ; Wed, 05 Oct 2016 14:20:42 -0400 Received: by mail-wm0-f67.google.com with SMTP id b201so20636892wmb.1 for ; Wed, 05 Oct 2016 11:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=EmdXb3kdUfzdcOvvF8vJp0no86LToZeEjVMlHTxAFAY=; b=F/My6nGOprmpye2l8Y0NEdOrTK5QdHhhi7YCYR3HR/2aw5wcszJIk/RqiorEUrEuGQ TMTmlDypP4h7ewjL/2KWo2007fmJmqUNyD3pRvIshdOvnWIX/cNKvpl4DvP07EV3xM1u w8437PPnj2RKIEuk7TXSVC/s6e4+IPcPiTJDeP0Sxp9EwH27rQLfZeUsPQHFL/5uZqb8 +o3+eNnSrX8qiEweyEKOIRCQZJE87CsKfukImAN3d8Eu+Uj/iowFm9z9FdNGRR5TrsnN xFwMuqTHHxrhw+azMaIHu5B8JF2eCiPJp95HYc0NWfcbBG45jP/ykGRq4YA1AN7K3AMD +ouQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=EmdXb3kdUfzdcOvvF8vJp0no86LToZeEjVMlHTxAFAY=; b=ATdove5kfxYiKRCxzm54OlYlJHyQB0xhgCj3nnt4Ow5S8QC6NfqZneNRFr368e+Xfw X2S7By89f9G7EnQLGsZhOPgQPjYgFAemTuuDgegg9EB5Go0+unGTBuD8qezrMs/+rpOk Si0xTnry7+ohuK9ogQtNfUzpnmertXP/lPVKZG7ZpKVWKUtxCVMVApeg3Z50RAW0krV2 Oe3HtChkprLnqekEm7SIJN8UDWbXBMG5RbiwLhn5NhRP8J0smHazfZ8Ov1KHFv8F032l GqKd/0SCQ8582MuTsCdD95RP38eAdPnxFmRc9kznvMAYSVInfk0kEu1NS6F9+EAPoM7Y OMeA== X-Gm-Message-State: AA6/9RnT2y+vMzxXJf7gt9HjPzGoRK/EMIh1N5212Rg2MjixLs0ZhHmpLs2rok7RpG/fXQ== X-Received: by 10.194.149.102 with SMTP id tz6mr10187788wjb.154.1475691637876; Wed, 05 Oct 2016 11:20:37 -0700 (PDT) Received: from [192.168.1.5] ([95.148.161.240]) by smtp.googlemail.com with ESMTPSA id p13sm10808619wmd.1.2016.10.05.11.20.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Oct 2016 11:20:37 -0700 (PDT) To: PHP Internals References: <1de78ecd-74e5-438c-9744-103163218ebd@gmail.com> Message-ID: <5991de8e-d962-dea9-b010-d53586827db7@gmail.com> Date: Wed, 5 Oct 2016 19:20:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [PHP-DEV] Add support for HTTP/1.1 From: rowan.collins@gmail.com (Rowan Collins) Hi all, It sounds like the feeling so far is quite positive. I'll have another look for a dupe, then file a bug for the missing 100-continue support, and try to work on a patch. Once that's in place, and unless anyone comes up with other major features we need to support, we can discuss whether we should make it the default, or at least easier to opt into. On 03/10/2016 09:43, Niklas Keller wrote ...: > I think we already send it starting with 7.0, maybe just for 1.0, > because there are some servers that respond correctly with an HTTP/1.1 > response to an HTTP/1.0 request, but fail to close the connection and > imply "Connection: close" for those requests. ... and on 05/10/2016 17:14, Andrea Faulds wrote: > In order to connect to many modern websites, you need a Host: header, > and in order to use a Host: header, you need to use HTTP/1.1 (if you > don't, servers will sometimes send you back a 1.1 response anyway!). Indeed, checking 7.0 suggests that we are unconditionally sending both a Host: header and Connection: Close with every request, while still claiming "HTTP/1.0". I believe both headers are technically backwards compatible with servers (i.e. ignored by) that genuinely speak HTTP/1.0, so this is not technically "wrong". However, the fact that it's necessary does strengthen the case for implementing HTTP/1.1 in full, rather than backporting features bit by bit. On 04/10/2016 09:55, Björn Larsson wrote: > Would fixing > this behaviour also be applicable for HTTPS? Yes, I'd be very surprised if this code wasn't shared between the two contexts. (It's a little more complicated than just piping an "http" connection through a "tls" one, because of things like SNI, but there'd be no reason to have the actual header processing code twice.) Regards, -- Rowan Collins [IMSoP]