Re: Minimizing/avoiding User-Agent, was: SPDY Header Frames

"Nicolas Mailhot" <nicolas.mailhot@laposte.net> Tue, 17 July 2012 19:24 UTC

Return-Path: <ietf-http-wg-request@listhub.w3.org>
X-Original-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Delivered-To: ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EFEC921F8621 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jul 2012 12:24:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -10.299
X-Spam-Level:
X-Spam-Status: No, score=-10.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_63=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id D5WDH-Hy7UsN for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Tue, 17 Jul 2012 12:24:41 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id 3A31021F85E6 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Tue, 17 Jul 2012 12:24:41 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1SrDNk-00016x-5X for ietf-http-wg-dist@listhub.w3.org; Tue, 17 Jul 2012 19:24:28 +0000
Resent-Date: Tue, 17 Jul 2012 19:24:28 +0000
Resent-Message-Id: <E1SrDNk-00016x-5X@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nicolas.mailhot@laposte.net>) id 1SrDNa-00016C-SU for ietf-http-wg@listhub.w3.org; Tue, 17 Jul 2012 19:24:18 +0000
Received: from smtpout1.laposte.net ([193.253.67.226] helo=smtpout.laposte.net) by lisa.w3.org with esmtp (Exim 4.72) (envelope-from <nicolas.mailhot@laposte.net>) id 1SrDNZ-0002aB-9S for ietf-http-wg@w3.org; Tue, 17 Jul 2012 19:24:18 +0000
Received: from arekh.dyndns.org ([88.174.226.208]) by mwinf8501-out with ME id bXPq1j0054WQcrc03XPqn8; Tue, 17 Jul 2012 21:23:50 +0200
Received: from localhost (localhost [127.0.0.1]) by arekh.dyndns.org (Postfix) with ESMTP id 13FC12E38D4; Tue, 17 Jul 2012 21:23:50 +0200 (CEST)
X-Virus-Scanned: amavisd-new at example.com
Received: from arekh.dyndns.org ([127.0.0.1]) by localhost (arekh.okg [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dt1N_uKUR5gE; Tue, 17 Jul 2012 21:23:36 +0200 (CEST)
Received: from arekh.dyndns.org (localhost [127.0.0.1]) by arekh.dyndns.org (Postfix) with ESMTP; Tue, 17 Jul 2012 21:23:36 +0200 (CEST)
Received: from 192.168.0.4 (SquirrelMail authenticated user nim) by arekh.dyndns.org with HTTP; Tue, 17 Jul 2012 21:23:36 +0200
Message-ID: <39a908269aed0fec3d0456ce7f7f38b2.squirrel@arekh.dyndns.org>
In-Reply-To: <5005B6FD.2030706@gmx.de>
References: <34f9c6a0d9659dcfc9adcf38fdace0dd.squirrel@arekh.dyndns.org> <5005B6FD.2030706@gmx.de>
Date: Tue, 17 Jul 2012 21:23:36 +0200
From: Nicolas Mailhot <nicolas.mailhot@laposte.net>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Nicolas Mailhot <nicolas.mailhot@laposte.net>, HTTP Working Group <ietf-http-wg@w3.org>
User-Agent: SquirrelMail/1.4.22-8.fc18
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Received-SPF: pass client-ip=193.253.67.226; envelope-from=nicolas.mailhot@laposte.net; helo=smtpout.laposte.net
X-W3C-Hub-Spam-Status: No, score=-1.9
X-W3C-Hub-Spam-Report: BAYES_00=-1.9, FREEMAIL_FROM=0.001, FSL_RCVD_USER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01
X-W3C-Scan-Sig: lisa.w3.org 1SrDNZ-0002aB-9S 7bea1e2a202b364f571594837894bc38
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Minimizing/avoiding User-Agent, was: SPDY Header Frames
Archived-At: <http://www.w3.org/mid/39a908269aed0fec3d0456ce7f7f38b2.squirrel@arekh.dyndns.org>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/14360
X-Loop: ietf-http-wg@w3.org
Resent-Sender: ietf-http-wg-request@w3.org
Precedence: list
List-Id: <ietf-http-wg.w3.org>
List-Help: <http://www.w3.org/Mail/>
List-Post: <mailto:ietf-http-wg@w3.org>
List-Unsubscribe: <mailto:ietf-http-wg-request@w3.org?subject=unsubscribe>

Le Mar 17 juillet 2012 21:03, Julian Reschke a écrit :
> On 2012-07-17 20:50, Nicolas Mailhot wrote:
>> Julian Reschke <julian.reschke@...> writes:
>>
>>>
>>> On 2012-07-17 15:38, Poul-Henning Kamp wrote:
>>
>>>> There must be a smarter way than "User-Agent:"...
>>>
>>> Actually one nice potential optimization is if the server can declare
>>> that it's not interested in the User-Agent at all; see
>>> <http://tools.ietf.org/html/draft-nottingham-http-browser-hints-03#section-5.7>
>>
>> The server may not be interested by intermediaries may still be
>>
>> (while ugly user-agent special-casing is quite useful for proxy
>> operators
>> that have to contend with web clients that were never really tested with
>> proxies and misbehave big way)
>
> Could you elaborate? What kind of misbehavior are you referring to?

Typical misbehaviour is inability to cope with intermediary-inserted
redirect and error codes, and retrying in a loop (because the developer
could not bother to write error handling code, considers that all errors
on the Internet are transient, so with enough retrying he will get
whatever he expected to get at first)

Then you get the web clients that try to interpret error pages as if they
were whatever they expected to get at first, with sometimes weird results.

Then you get the 'pump as much as you can' web client that will starve
everything else.

It's usually less invasive to blacklist or limit just the specific
troublesome client instead of targeting the URLs it tries to access or the
system it runs on (because the buggy part is the web client,the user who
installed it may do legitimate work with other web clients at the same
time, the broken web client will misbehave the same way tomorrow with
other web sites, and this way the protection is in place before other
systems are infected with brokenware)

I really hope HTTP/2 makes intermediaries first-call citizens and
clarifies intermediary/web client signalling so such things happen less
often in the http/2 future (though bugs will always exist, so a client
signature to home on is nice)

-- 
Nicolas Mailhot