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

"Martin Nilsson" <nilsson@opera.com> Thu, 12 June 2014 11:57 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 4F8551B285C for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jun 2014 04:57:39 -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 5lehgEsBBjj9 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Thu, 12 Jun 2014 04:57:38 -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 BF8111A0069 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Thu, 12 Jun 2014 04:57:37 -0700 (PDT)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1Wv3bE-0000Iw-I8 for ietf-http-wg-dist@listhub.w3.org; Thu, 12 Jun 2014 11:55:20 +0000
Resent-Date: Thu, 12 Jun 2014 11:55:20 +0000
Resent-Message-Id: <E1Wv3bE-0000Iw-I8@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <nilsson@opera.com>) id 1Wv3b3-0000Hd-N5 for ietf-http-wg@listhub.w3.org; Thu, 12 Jun 2014 11:55:09 +0000
Received: from mail-la0-f42.google.com ([209.85.215.42]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <nilsson@opera.com>) id 1Wv3b2-0003Ov-0H for ietf-http-wg@w3.org; Thu, 12 Jun 2014 11:55:09 +0000
Received: by mail-la0-f42.google.com with SMTP id el20so629298lab.15 for <ietf-http-wg@w3.org>; Thu, 12 Jun 2014 04:54:40 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:to:subject:references:date :mime-version:from:organization:message-id:in-reply-to:user-agent; bh=yIXrsOYxgn0SPe4f6/NOAu8MfI0/cv9gJVQgv4NkC7I=; b=RHCQM3rBskw6qr25QuVpN96VdRRjCgS+n4EAW1M3Kol3+044t0FzEPbhXsdZ5VBHk7 j9wjEVsK6y+lTcbnJV2ML0GnuZlv5WszfLJMfZsTwD8Mf4I+8AX/UDaqboclreqUPbj7 NRlwUJwpXjanotgHVzxXjvMEEm3+Eb9JFOBAjsW/YIEQPap0O8KTjVVXkGYuUk5w49mI /1n1Aoz45RA0oBa1XJgFZq6i34vzJ+i88j7O6jPpd8QC/emuNHprIHy59XBz4VgODK3t 5HfBr1bsRErqsjmGY5pMEQHuD9J2MMyQPJQ71/1FfmZUTWGWI2U9n27Hu+Wfgv//h6CX EB+Q==
X-Gm-Message-State: ALoCoQlZfV1WrZS7RTErcce8mIgCCtT0yrkVWouvNUUTTDyYwptV8dtav5r4gSxo5BRnw65g+MIG
X-Received: by 10.112.63.162 with SMTP id h2mr5769249lbs.45.1402574080489; Thu, 12 Jun 2014 04:54:40 -0700 (PDT)
Received: from uranium.bredbandsbolaget.se (c-aa1de353.03-25-6c6b7010.cust.bredbandsbolaget.se. [83.227.29.170]) by mx.google.com with ESMTPSA id m2sm27889024lbp.31.2014.06.12.04.54.38 for <ietf-http-wg@w3.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 12 Jun 2014 04:54:39 -0700 (PDT)
Content-Type: multipart/alternative; boundary="----------WthFmRRQftec0lHrk2Zh8x"
To: ietf-http-wg@w3.org
References: <49e4b0d57ea64c02a4e755d7a4737caa@BN1PR07MB069.namprd07.prod.outlook.com>
Date: Thu, 12 Jun 2014 13:54:43 +0200
MIME-Version: 1.0
From: Martin Nilsson <nilsson@opera.com>
Organization: Opera Software
Message-ID: <op.xhcbdhghiw9drz@uranium.bredbandsbolaget.se>
In-Reply-To: <49e4b0d57ea64c02a4e755d7a4737caa@BN1PR07MB069.namprd07.prod.outlook.com>
User-Agent: Opera Mail/12.02 (Win32)
Received-SPF: pass client-ip=209.85.215.42; envelope-from=nilsson@opera.com; helo=mail-la0-f42.google.com
X-W3C-Hub-Spam-Status: No, score=-3.5
X-W3C-Hub-Spam-Report: AWL=-2.768, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1Wv3b2-0003Ov-0H dcb983a27399dadfe4f044aebe33c451
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/op.xhcbdhghiw9drz@uranium.bredbandsbolaget.se>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/24203
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>

On Thu, 12 Jun 2014 13:14:33 +0200, Basem Emara <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/