From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.190.149 with SMTP id di21cs39634qcb; Sun, 24 Apr 2011 12:45:20 -0700 (PDT) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCPb0wYycDBDO-9HtBBoE7TbXaA@googlegroups.com designates 10.224.210.194 as permitted sender) client-ip=10.224.210.194; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCPb0wYycDBDO-9HtBBoE7TbXaA@googlegroups.com designates 10.224.210.194 as permitted sender) smtp.mail=rack-devel+bncCPb0wYycDBDO-9HtBBoE7TbXaA@googlegroups.com; dkim=pass header.i=rack-devel+bncCPb0wYycDBDO-9HtBBoE7TbXaA@googlegroups.com Received: from mr.google.com ([10.224.210.194]) by 10.224.210.194 with SMTP id gl2mr1748961qab.23.1303674320721 (num_hops = 1); Sun, 24 Apr 2011 12:45:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:x-beenthere:received-spf:mime-version :in-reply-to:references:date:message-id:subject:from:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-google-group-id:list-post :list-help:list-archive:sender:list-subscribe:list-unsubscribe :content-type; bh=M7BjqdjubRV5e3GGfKBjTDZjRgJFPrFpFVc0J+KBYzk=; b=k6FWpAtbq7l5JEE8h0qpMNiuSsqhiiWzCFGogVdwdy+SHw3kC6ypsmkZuBbbiht+b3 i8S0KBpNxjbqyRzyTjv8dtys77e/PjQaoRhjeBdUrX112y/6FEELJN3/EXLotHx4Ouhm 4IhKfqOx+gxdxYmqQdLuDgq00RyCjNYdTvbSg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:in-reply-to:references:date :message-id:subject:from:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-google-group-id:list-post:list-help:list-archive:sender :list-subscribe:list-unsubscribe:content-type; b=SQEQLfipp68Brvgk3olq/szPsWydbcj+1RDmYQd9v4jkT2UOtt8UiGzSrRV8AHbwWd R/byqG6v1Hsiw2umAG3VV869v+7hLXMx8AjcSL5qFIyauZd+KClrLytggfyJa/v7Fss2 5Rcc8uviWw0gnXCS+iRw/nsngr7GlkFjLsM/c= Received: by 10.224.210.194 with SMTP id gl2mr345003qab.23.1303674318960; Sun, 24 Apr 2011 12:45:18 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.224.217.73 with SMTP id hl9ls809582qab.1.gmail; Sun, 24 Apr 2011 12:45:18 -0700 (PDT) Received: by 10.224.136.18 with SMTP id p18mr199534qat.10.1303674318123; Sun, 24 Apr 2011 12:45:18 -0700 (PDT) Received: by 10.224.136.18 with SMTP id p18mr199533qat.10.1303674318107; Sun, 24 Apr 2011 12:45:18 -0700 (PDT) Received: from mail-vx0-f173.google.com ([209.85.220.173]) by gmr-mx.google.com with ESMTPS id n4si1057490qcg.7.2011.04.24.12.45.17 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2011 12:45:17 -0700 (PDT) Received-SPF: pass (google.com: domain of sylvain.desve@gmail.com designates 209.85.220.173 as permitted sender) client-ip=209.85.220.173; Received: by vxb41 with SMTP id 41so2071573vxb.18 for ; Sun, 24 Apr 2011 12:45:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.122.5 with SMTP id j5mr1032677vcr.119.1303674316784; Sun, 24 Apr 2011 12:45:16 -0700 (PDT) Received: by 10.220.167.194 with HTTP; Sun, 24 Apr 2011 12:45:16 -0700 (PDT) In-Reply-To: References: <4bdb2042-628d-4ae5-bbbe-32017d3d3874@z7g2000prh.googlegroups.com> Date: Sun, 24 Apr 2011 21:45:16 +0200 Message-ID: Subject: Re: Rack: adding a query parameter before call From: =?ISO-8859-1?Q?Sylvain_Desv=E9?= To: rack-devel@googlegroups.com X-Original-Sender: sylvain.desve@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of sylvain.desve@gmail.com designates 209.85.220.173 as permitted sender) smtp.mail=sylvain.desve@gmail.com; dkim=pass (test mode) header.i=@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: X-Google-Group-Id: 486215384060 List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: multipart/alternative; boundary=0016369f9dff8e035d04a1af5473 --0016369f9dff8e035d04a1af5473 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I think you meant "Rack" and not "Rake". If so, here is a method to add a parameter to the query string : use Rack::Config do |env| env["QUERY_STRING"] +=3D "&" unless env["QUERY_STRING"].empty? env["QUERY_STRING"] +=3D "" + Rack::Utils.build_query(:my_new_parameter = =3D> "and its value") end 2011/4/24 Lee Hambley > Example please Ned=85 (the code you have so far) > --0016369f9dff8e035d04a1af5473 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I think you meant "Rack" and not "Rake". If so, here is= a method to add a parameter to the query string :

use R= ack::Config do |env|
=A0=A0env["QUERY_STRING"] +=3D &qu= ot;&" unless=A0env["QUERY_STRING"].empty?
=A0=A0env["QUERY_= STRING"] +=3D "" + Rack::Utils.build_query(:my_new_parameter= =3D> "and its value")
end
2011/4/24 Lee Hambley <lee.hambley@gmail.com>
Example please Ned=85 (the code you have so far)

--0016369f9dff8e035d04a1af5473--