From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.204.72.79 with SMTP id l15cs75232bkj; Thu, 27 Aug 2009 20:12:58 -0700 (PDT) Received-SPF: pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.220.87.135 as permitted sender) client-ip=10.220.87.135; Authentication-Results: mr.google.com; spf=pass (google.com: domain of grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com designates 10.220.87.135 as permitted sender) smtp.mail=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com; dkim=pass header.i=grbounce-ceibQwUAAAB4YPBqaDIjI2bFOCxyyh3G=chneukirchen=gmail.com@googlegroups.com Received: from mr.google.com ([10.220.87.135]) by 10.220.87.135 with SMTP id w7mr1945495vcl.14.1251429177412 (num_hops = 1); Thu, 27 Aug 2009 20:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received:received-spf:received:received:received :from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id:x-google-approved :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; bh=sume9r9O6/X6E2bvsXMFoEryGqfpBDYyIhIOM8Ankmc=; b=RTwwt7l6kqWJ41ilXqsMUUeH87mmiEYnU8JWFimvQTZYXW6CVFLwhhKqLTt2wgmiSh +BQkiAIYAM4QL09z8zy2nyo12JuvBY3JZcW9rjQFAPDO4nNL4hBeGBZircgXtE7x8IvM aYTl/+rzAs1WdQdOjTlw/vxMaRyLJ//OFffVc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results:from :to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id:x-google-approved :reply-to:sender:precedence:x-google-loop:mailing-list:list-id :list-post:list-help:list-unsubscribe:x-beenthere-env:x-beenthere; b=HHF1Na5QHpFebx+WvomicKQVo9i05Z28wVXIGhbb2txxzjJRko9w5QjWtw+hH6BCJx PDwqGDq4AFEvA/JpzsLDOVm/uicbJvCXVZa31V1ZzqFXr8h1PzKG33F8cGZMl9bgGNLk j3DH49a/J+Et+u2p43E6r23B7GuouTuuUZCBA= Received: by 10.220.87.135 with SMTP id w7mr301506vcl.14.1251429177332; Thu, 27 Aug 2009 20:12:57 -0700 (PDT) Received: by 10.230.39.80 with SMTP id f16gr1611vbe.0; Thu, 27 Aug 2009 18:07:36 -0700 (PDT) X-Sender: ibc@aliax.net X-Apparently-To: rack-devel@googlegroups.com Received: by 10.210.116.3 with SMTP id o3mr702272ebc.11.1251421535221; Thu, 27 Aug 2009 18:05:35 -0700 (PDT) Received: by 10.210.116.3 with SMTP id o3mr702271ebc.11.1251421535200; Thu, 27 Aug 2009 18:05:35 -0700 (PDT) Return-Path: Received: from mail-ew0-f221.google.com (mail-ew0-f221.google.com [209.85.219.221]) by gmr-mx.google.com with ESMTP id 16si186872ewy.3.2009.08.27.18.05.35; Thu, 27 Aug 2009 18:05:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.219.221 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) client-ip=209.85.219.221; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.219.221 is neither permitted nor denied by best guess record for domain of ibc@aliax.net) smtp.mail=ibc@aliax.net Received: by ewy21 with SMTP id 21so741439ewy.19 for ; Thu, 27 Aug 2009 18:05:35 -0700 (PDT) Received: by 10.211.137.19 with SMTP id p19mr7639559ebn.41.1251421535049; Thu, 27 Aug 2009 18:05:35 -0700 (PDT) Return-Path: Received: from ibc-laptop.localnet (10.216.218.87.dynamic.jazztel.es [87.218.216.10]) by mx.google.com with ESMTPS id 23sm696492eya.11.2009.08.27.18.05.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 27 Aug 2009 18:05:34 -0700 (PDT) From: =?utf-8?q?I=C3=B1aki_Baz_Castillo?= To: rack-devel@googlegroups.com Subject: Re: How to get the request headers from "env" hash? [SOLVED] Date: Fri, 28 Aug 2009 03:05:31 +0200 User-Agent: KMail/1.12.0 (Linux/2.6.28-15-generic; KDE/4.3.0; x86_64; ; ) References: <200908280208.12951.ibc@aliax.net> In-Reply-To: <200908280208.12951.ibc@aliax.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Message-Id: <200908280305.31938.ibc@aliax.net> X-Google-Approved: scytrin@gmail.com via web at 2009-08-28 01:07:34 Reply-To: rack-devel@googlegroups.com Sender: rack-devel@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rack-devel@googlegroups.com; contact rack-devel+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rack-devel@googlegroups.com X-BeenThere: rack-devel@googlegroups.com El Viernes, 28 de Agosto de 2009, I=C3=B1aki Baz Castillo escribi=C3=B3: > but I don't see > in the above hash how to get the request headers (any header). Ok, it's done by inspecting env["HTTP_HEADER_NAME"]. :) However, what about if a header is present more than once? AFAIK HTTP proto= col=20 allows a header having multivalue in two ways: 1) A single header with values separated by comma. 2) Varios headers with same value and different name. Rack sems to choose the last matching header as I've realized. Then, what=20 about multiple headers with same value? Thanks. =2D-=20 I=C3=B1aki Baz Castillo