Re: Including screen size to header messages (extending UserAgent)

Basem Emara <Basem@falafel.com> Thu, 12 June 2014 12:04 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 (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0E67E1B2824 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jun 2014 05:04:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.552
X-Spam-Level:
X-Spam-Status: No, score=-7.552 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.651, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OMmaYcOvhRwH for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jun 2014 05:04:44 -0700 (PDT)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 443D21B285B for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jun 2014 05:04:44 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Wv3hq-0004EH-Km for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jun 2014 12:02:10 +0000
Resent-Date: Thu, 12 Jun 2014 12:02:10 +0000
Resent-Message-Id: <E1Wv3hq-0004EH-Km@frink.w3.org>
Received: from maggie.w3.org ([128.30.52.39]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <Basem@falafel.com>) id 1Wv3he-0004D7-Lt for ietf-http-wg@listhub.w3.org; Thu, 12 Jun 2014 12:01:58 +0000
Received: from mail-bn1blp0189.outbound.protection.outlook.com ([207.46.163.189] helo=na01-bn1-obe.outbound.protection.outlook.com) by maggie.w3.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from <Basem@falafel.com>) id 1Wv3hc-0004WA-Uj for ietf-http-wg@w3.org; Thu, 12 Jun 2014 12:01:58 +0000
Received: from BN1PR07MB072.namprd07.prod.outlook.com (10.255.224.156) by BN1PR07MB087.namprd07.prod.outlook.com (10.255.224.159) with Microsoft SMTP Server (TLS) id 15.0.954.9; Thu, 12 Jun 2014 12:01:03 +0000
Received: from BN1PR07MB069.namprd07.prod.outlook.com (10.255.224.153) by BN1PR07MB072.namprd07.prod.outlook.com (10.255.224.156) with Microsoft SMTP Server (TLS) id 15.0.954.9; Thu, 12 Jun 2014 12:00:41 +0000
Received: from BN1PR07MB069.namprd07.prod.outlook.com ([169.254.4.92]) by BN1PR07MB069.namprd07.prod.outlook.com ([169.254.4.92]) with mapi id 15.00.0954.000; Thu, 12 Jun 2014 12:00:40 +0000
From: Basem Emara <Basem@falafel.com>
To: Martin Nilsson <nilsson@opera.com>
CC: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Thread-Topic: Including screen size to header messages (extending UserAgent)
Thread-Index: Ac+GLmLt+b+8ULN+Rim97m1aL1pTyQABrYyAAAA1LNs=
Date: Thu, 12 Jun 2014 12:00:39 +0000
Message-ID: <66D719F2-5B23-452A-9888-1AAE55FAD5FD@falafel.com>
References: <49e4b0d57ea64c02a4e755d7a4737caa@BN1PR07MB069.namprd07.prod.outlook.com>, <op.xhcbdhghiw9drz@uranium.bredbandsbolaget.se>
In-Reply-To: <op.xhcbdhghiw9drz@uranium.bredbandsbolaget.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [99.244.124.182]
x-microsoft-antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID:
x-forefront-prvs: 02408926C4
x-forefront-antispam-report: SFV:NSPM; SFS:(428001)(24454002)(377454003)(189002)(199002)(19625215002)(74502001)(74662001)(36756003)(31966008)(33656002)(15202345003)(50986999)(54356999)(76176999)(82746002)(16236675004)(92726001)(92566001)(83716003)(15975445006)(81542001)(81342001)(83322001)(19580395003)(19580405001)(83072002)(85852003)(87936001)(2656002)(86362001)(101416001)(64706001)(20776003)(80022001)(99286001)(99396002)(77982001)(66066001)(46102001)(4396001)(21056001)(76482001)(79102001)(104396001)(80792004); DIR:OUT; SFP:; SCL:1; SRVR:BN1PR07MB072; H:BN1PR07MB069.namprd07.prod.outlook.com; FPR:; MLV:sfv; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (: falafel.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Basem@falafel.com;
Content-Type: multipart/alternative; boundary="_000_66D719F25B23452A98881AAE55FAD5FDfalafelcom_"
MIME-Version: 1.0
X-Microsoft-Antispam: BL:0; ACTION:Default; RISK:Low; SCL:0; SPMLVL:NotSpam; PCL:0; RULEID:
X-OriginatorOrg: falafel.com
Received-SPF: pass client-ip=207.46.163.189; envelope-from=Basem@falafel.com; helo=na01-bn1-obe.outbound.protection.outlook.com
X-W3C-Hub-Spam-Status: No, score=-0.0
X-W3C-Hub-Spam-Report: HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001
X-W3C-Scan-Sig: maggie.w3.org 1Wv3hc-0004WA-Uj 03760401e2ec7789debf8684caa35d8d
X-Original-To: ietf-http-wg@w3.org
Subject: Re: Including screen size to header messages (extending UserAgent)
Archived-At: <http://www.w3.org/mid/66D719F2-5B23-452A-9888-1AAE55FAD5FD@falafel.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/24204
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>

Yes, but this is needed in the server-side to redirect a user to a mobile site for example. Otherwise, a client-side redirect is only possible which would cause a delay and a white flash of screen.

On Jun 12, 2014, at 7:58 AM, "Martin Nilsson" <nilsson@opera.com<mailto:nilsson@opera.com>> wrote:

On Thu, 12 Jun 2014 13:14:33 +0200, Basem Emara <Basem@falafel.com<mailto:Basem@falafel.com>> wrote:

Please see following contribution to the spec to handle different screen sizes for a post mobile world (written in 1996!):
http://www.watersprings.org/pub/id/draft-mutz-http-attributes-00.txt

It was intended for HTTP/1.1, but did not make it. It should be reconsidered for HTTP/2.

Current UserAgent is supplied in the header message, but this is insufficient in deducing the screen size. We are forced to look into a table of all possible UserAgents and their screen specs to come up with the screen size. This is maintenance nightmare since ne mobile devices and UserAgents are introduced every day. Servers need to know the screen size rather than the device type to serve different content or redirect to a site more tailored to their screen dimensions.


While using the user agent header is not a workable solution (not only are there always new devices, some reuses the user agent header string of other devices), there are already methods available to do runtime detection of screen size using javascript or CSS.

/Martin Nilsson

--
Using Opera's revolutionary email client: http://www.opera.com/mail/