From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs28024hbo; Mon, 19 Apr 2010 23:34:40 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncCJiRqd7pARDxlbXeBBoEMKX-3g@googlegroups.com designates 10.91.93.4 as permitted sender) client-ip=10.91.93.4; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCJiRqd7pARDxlbXeBBoEMKX-3g@googlegroups.com designates 10.91.93.4 as permitted sender) smtp.mail=rack-devel+bncCJiRqd7pARDxlbXeBBoEMKX-3g@googlegroups.com; dkim=pass header.i=rack-devel+bncCJiRqd7pARDxlbXeBBoEMKX-3g@googlegroups.com Received: from mr.google.com ([10.91.93.4]) by 10.91.93.4 with SMTP id v4mr8352346agl.36.1271745278427 (num_hops = 1); Mon, 19 Apr 2010 23:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:received:received:mime-version :subject:from:in-reply-to:date:message-id:references:to:x-pgp-agent :x-mailer:x-original-authentication-results:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe:content-type; bh=daX0i5g9EO4kBWsE7o/xAVgCv31BxjatPSwgm9+CTG4=; b=bTfWC5w2OZqTzlFMjfaVeSlqjM266LsvxEFx2Nd03acO2x3J3owRKDBs5ST+YrXGbA M3hesHImJ1w3eb9g2rjKlsB854ewM0Io36QT9miWuYoB6Jt4duaYXARxfIrvUcxWlt9k iZW6HDuXwCn1Yw47BmPnzbVGLqmKQIySgHLOg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:mime-version:subject:from:in-reply-to:date :message-id:references:to:x-pgp-agent:x-mailer :x-original-authentication-results:x-original-sender:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :sender:list-subscribe:list-unsubscribe:content-type; b=6NArNeu1j4tl5eMMqRAgnH+J/YI2AgEJ7xjtSbhOqdzEAqJt7MzSqjh6MmB0YLEHu3 Ah1axOlJkbV6672juztTSRdqIzIT7Uh27Q1d/3pkLOcBh1nZS9K1I4+bho02uU1tcqZ4 tL1ygjuewzFxI032p/esNz77mmsT0ZvoCBSRs= Received: by 10.91.93.4 with SMTP id v4mr1788978agl.36.1271745265693; Mon, 19 Apr 2010 23:34:25 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.204.32.206 with SMTP id e14ls4507223bkd.2.p; Mon, 19 Apr 2010 23:34:24 -0700 (PDT) Received: by 10.204.16.81 with SMTP id n17mr363351bka.11.1271745263827; Mon, 19 Apr 2010 23:34:23 -0700 (PDT) Received: by 10.204.16.81 with SMTP id n17mr363350bka.11.1271745263799; Mon, 19 Apr 2010 23:34:23 -0700 (PDT) Return-Path: Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by gmr-mx.google.com with ESMTP id 18si1019910bwz.8.2010.04.19.23.34.23; Mon, 19 Apr 2010 23:34:23 -0700 (PDT) Received-SPF: neutral (google.com: 72.14.220.157 is neither permitted nor denied by best guess record for domain of k.haase@finn.de) client-ip=72.14.220.157; Received: by fg-out-1718.google.com with SMTP id 19so1251813fgg.0 for ; Mon, 19 Apr 2010 23:34:23 -0700 (PDT) Received: by 10.87.63.21 with SMTP id q21mr5272870fgk.52.1271745263066; Mon, 19 Apr 2010 23:34:23 -0700 (PDT) Return-Path: Received: from [172.16.22.105] ([141.89.226.149]) by mx.google.com with ESMTPS id b9sm5233913mug.7.2010.04.19.23.34.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 23:34:22 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1077) Subject: Re: multipart response possible with Rack? From: Konstantin Haase In-Reply-To: <4BCC1CD0.6070201@gmx.at> Date: Tue, 20 Apr 2010 08:34:18 +0200 Message-Id: References: <4BCC1CD0.6070201@gmx.at> To: rack-devel@googlegroups.com X-Pgp-Agent: GPGMail 1.2.3 X-Mailer: Apple Mail (2.1077) X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 72.14.220.157 is neither permitted nor denied by best guess record for domain of k.haase@finn.de) smtp.mail=k.haase@finn.de X-Original-Sender: k.haase@finn.de Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: Sender: rack-devel@googlegroups.com List-Subscribe: , List-Unsubscribe: , Content-Type: text/plain; charset=ISO-8859-1 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Apr 19, 2010, at 11:05 , Michael Franzl wrote: > I would like to generate a multipart HTTP response to a conventional GET request. For the end user, this will display a web page and download a file simultaneously. The response should look like the example below. > > Can I do this with Rack? I don't think there is a middleware or some sort of helper right now. You could try something like this: http://gist.github.com/372122 By the way: Do browsers support that? Konstantin -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) iQEcBAEBAgAGBQJLzUrtAAoJEM+qkfuqK1IX+4MIALgNm9stV0lLVXCMNekcGiaW v4ahVMIWwP4o6ugVzeFATd5Qj4+UyZPZ+QyLDGGxFL9+GZ403+/GC18963rxcBY6 D+r76/Nu6024yXE/ydLQzOypLs2tVE1aIFNfTJ7CRxLl9jxHlIxYeHYhSUdGLELj hqyFPTfsErADvVey2+boYuRH9v+zUSGSSBrUSqS+xx84p0zP53gTojibmOtrEP6o dTUnP9VAOuBLxjGS0jLwfkvE0HjxbCIq/+JFT4lsnlWY13T/O4dp6ZHn97ZbzyP/ ADTMVtxI9olJ/3JftB5ySdeu8soa0NRpEW0+SsqXUw8yWJoq2n07eXshiq0GjrM= =N6G4 -----END PGP SIGNATURE----- -- Subscription settings: http://groups.google.com/group/rack-devel/subscribe?hl=en