Re: HeaderDiff specification

Roberto Peon <grmocg@gmail.com> Fri, 22 February 2013 16:35 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 CFA7921F84C7 for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 22 Feb 2013 08:35:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.951
X-Spam-Level:
X-Spam-Status: No, score=-9.951 tagged_above=-999 required=5 tests=[AWL=-0.553, BAYES_00=-2.599, HTML_MESSAGE=0.001, J_CHICKENPOX_41=0.6, J_CHICKENPOX_71=0.6, RCVD_IN_DNSWL_HI=-8]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QVi44v7i+4AT for <ietfarch-httpbisa-archive-bis2Juki@ietfa.amsl.com>; Fri, 22 Feb 2013 08:35:14 -0800 (PST)
Received: from frink.w3.org (frink.w3.org [128.30.52.56]) by ietfa.amsl.com (Postfix) with ESMTP id BF0A021F8496 for <httpbisa-archive-bis2Juki@lists.ietf.org>; Fri, 22 Feb 2013 08:35:14 -0800 (PST)
Received: from lists by frink.w3.org with local (Exim 4.72) (envelope-from <ietf-http-wg-request@listhub.w3.org>) id 1U8vZB-0007Ap-31 for ietf-http-wg-dist@listhub.w3.org; Fri, 22 Feb 2013 16:33:45 +0000
Resent-Date: Fri, 22 Feb 2013 16:33:45 +0000
Resent-Message-Id: <E1U8vZB-0007Ap-31@frink.w3.org>
Received: from lisa.w3.org ([128.30.52.41]) by frink.w3.org with esmtp (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1U8vYy-00079U-9p for ietf-http-wg@listhub.w3.org; Fri, 22 Feb 2013 16:33:32 +0000
Received: from mail-ob0-f182.google.com ([209.85.214.182]) by lisa.w3.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from <grmocg@gmail.com>) id 1U8vYw-0005rI-46 for ietf-http-wg@w3.org; Fri, 22 Feb 2013 16:33:32 +0000
Received: by mail-ob0-f182.google.com with SMTP id va7so737340obc.41 for <ietf-http-wg@w3.org>; Fri, 22 Feb 2013 08:33:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=G7AX7Ygb2FvydtdPwJajbFqsHb7LaS9ZKmUkboiGMlo=; b=Fau+wSi84WI6X0C/pnSabA9fVGeFsQt9CukAVDOzlg1GE00ilGn4Xsrv9RqFEGHG07 umdVzElTxHA9weDoQVLmCcm1Q2qQr7tpUhR5i+EBzc37g1uA/vynJ47XL8x8LKglJHQj pq6aui/mpz7/nGdJIfqCdS1Mqks2CutPoJan0Sp9kH4i/HjASec4oDurDZxH3xM+6wjl Y7Yp+mic60z32+w0nDp5EoanHZejHSpXmWoYLL3x/6PtcJKauJFYdq8c0eKNiuPb0Dpp WLTwIkgJur7wuWhR1Of0HuiaLk0U5vMASnOZpfuxPquuQz3XP2hpw7gB18IBdZ3VBnUT 53CQ==
MIME-Version: 1.0
X-Received: by 10.182.157.7 with SMTP id wi7mr1055171obb.10.1361550784076; Fri, 22 Feb 2013 08:33:04 -0800 (PST)
Received: by 10.76.167.193 with HTTP; Fri, 22 Feb 2013 08:33:04 -0800 (PST)
In-Reply-To: <CAP+FsNcA2GLwZytpkOai==4vh=xAmSu6FsTKA=SfRe=E8T8Fzw@mail.gmail.com>
References: <6C71876BDCCD01488E70A2399529D5E5163DF755@ADELE.crf.canon.fr> <CAP+FsNcA2GLwZytpkOai==4vh=xAmSu6FsTKA=SfRe=E8T8Fzw@mail.gmail.com>
Date: Fri, 22 Feb 2013 08:33:04 -0800
Message-ID: <CAP+FsNeMmLP3t+dt08f-M9aPPz3xg_WgN3mqrxNu8x=SBT_a6w@mail.gmail.com>
From: Roberto Peon <grmocg@gmail.com>
To: RUELLAN Herve <Herve.Ruellan@crf.canon.fr>
Cc: "ietf-http-wg@w3.org" <ietf-http-wg@w3.org>
Content-Type: multipart/alternative; boundary="f46d044282e8d41cd904d652be73"
Received-SPF: pass client-ip=209.85.214.182; envelope-from=grmocg@gmail.com; helo=mail-ob0-f182.google.com
X-W3C-Hub-Spam-Status: No, score=-3.3
X-W3C-Hub-Spam-Report: AWL=-2.541, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001
X-W3C-Scan-Sig: lisa.w3.org 1U8vYw-0005rI-46 c0df1fba941eacfc55762a25fef3e63b
X-Original-To: ietf-http-wg@w3.org
Subject: Re: HeaderDiff specification
Archived-At: <http://www.w3.org/mid/CAP+FsNeMmLP3t+dt08f-M9aPPz3xg_WgN3mqrxNu8x=SBT_a6w@mail.gmail.com>
Resent-From: ietf-http-wg@w3.org
X-Mailing-List: <ietf-http-wg@w3.org> archive/latest/16771
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>

That was meant to be a reply to the git mail., but oh well..
I have checked in a quick fix that makes it run (a function was removed
upstream, and I suspect it hadn't merged before you did the PULL).

I'm getting an error with cookies-- it looks like more than one crumb may
cause problems.


################################################################################
# http1
get /skins/alsacreations/theme.min.css HTTP/1.1^M
accept-language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3^M
accept-encoding: gzip, deflate^M
accept: text/css,*/*;q=0.1^M
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0)
Gecko/20100101 Firefox/18.0^M
:scheme: http^M
referer: http://forum.alsacreations.com/forum.php^M
cookie: PHPSESSID=qbfo7c1gomj6k6ul3nnjc2lsf3; lv=1358630783^M
host: forum.alsacreations.com^M
^M
# headerdiff
get /skins/alsacreations/theme.min.css HTTP/1.1^M
accept-language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3^M
accept-encoding: gzip, deflate^M
accept: text/css,*/*;q=0.1^M
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0)
Gecko/20100101 Firefox/18.0^M
:scheme: http^M
referer: http://forum.alsacreations.com/forum.php^M
cookie: lv=1358630783^M
host: forum.alsacreations.com^M
^M
  - mismatch in headerdiff:
Only found in: orig
|-------cookie: PHPSESSID=qbfo7c1gomj6k6ul3nnjc2lsf3

Traceback (most recent call last):
  File
"/usr/local/google/home/fenix/www/compression-test/compare_compressors.py",
line 124, in <module>
    CompressionTester(sys.stdout.write)
  File
"/usr/local/google/home/fenix/www/compression-test/compare_compressors.py",
line 38, in __init__
    self.run()
  File
"/usr/local/google/home/fenix/www/compression-test/compare_compressors.py",
line 50, in run
    self.processors.process_stream(stream)
  File "/home/fenix/www/compression-test/lib/processors.py", line 72, in
process_stream
    results = self.process_message(hdrs, stream.msg_type, host)
  File "/home/fenix/www/compression-test/lib/processors.py", line 146, in
process_message
    raise StandardError()
StandardError


On Fri, Feb 22, 2013 at 5:07 AM, Roberto Peon <grmocg@gmail.com> wrote:

> Looks good. Merged.
> -=R
>
>
> On Fri, Feb 22, 2013 at 2:50 AM, RUELLAN Herve <Herve.Ruellan@crf.canon.fr
> > wrote:
>
>> All,
>>
>> Here is the detailed specification for our header representation format
>> HeaderDiff.
>>
>> We have also published an implementation, which can currently be found at:
>> https://github.com/hruellan/compression-test/tree/HeaderDiff
>>
>> (I've sent a pull request to have it included in
>> https://github.com/http2/compression-test).
>>
>> Comments are welcome,
>>
>> Hervé.
>>
>
>