From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.239.138.72 with SMTP id o8cs19556hbo; Mon, 19 Apr 2010 19:38:36 -0700 (PDT) Received-SPF: pass (google.com: domain of rack-devel+bncCJy70PeqFBCmp7TeBBoES46X9w@googlegroups.com designates 10.91.203.22 as permitted sender) client-ip=10.91.203.22; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCJy70PeqFBCmp7TeBBoES46X9w@googlegroups.com designates 10.91.203.22 as permitted sender) smtp.mail=rack-devel+bncCJy70PeqFBCmp7TeBBoES46X9w@googlegroups.com; dkim=pass header.i=rack-devel+bncCJy70PeqFBCmp7TeBBoES46X9w@googlegroups.com Received: from mr.google.com ([10.91.203.22]) by 10.91.203.22 with SMTP id f22mr8125874agq.59.1271731114799 (num_hops = 1); Mon, 19 Apr 2010 19:38:34 -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:received-spf:received:received:x-authenticated :x-provags-id:message-id:date:from:user-agent:mime-version:to :subject:x-y-gmx-trusted:x-fuhafi: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=FdOdSATPSJRAzNmfvacvjAjEzuHyML5K8AcTonvpH5Q=; b=u6U+3zGsZIUt6UIvt0LNCptwu4s+sglN0gDT+K+zCgNsSLDOTKug8dcbFIpy88cdpB 6E8Fnof27zWdeTpz2d+C+/sGmwBaYS20HOExuWS2RlhhPO3YROZpJx19S70zFCoonxZR +caD8yrtgRhRsaJMfFAbv7kmS7eMEI9fYPr3c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:x-authenticated:x-provags-id:message-id :date:from:user-agent:mime-version:to:subject:x-y-gmx-trusted :x-fuhafi: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=E4FSwR4PeCjz/i9W86GBIkU9IjYEgf6pAahJSUKaHu2UfYreBAHlSXgyYG0Se7lldO oBB0f4tbBXo2lCxbxl+5WSN5/R3AMYj5zKas6tSqbMDv5gEDBHpQjQmSKju9uyKRr287 TY/PjBnmPmpZGLK8FKOlcZ+u8h0pfaZBCWqyc= Received: by 10.91.203.22 with SMTP id f22mr1743853agq.59.1271731110794; Mon, 19 Apr 2010 19:38:30 -0700 (PDT) X-BeenThere: rack-devel@googlegroups.com Received: by 10.86.125.19 with SMTP id x19ls1387873fgc.1.p; Mon, 19 Apr 2010 19:38:29 -0700 (PDT) Received: by 10.87.74.11 with SMTP id b11mr72365fgl.4.1271731109471; Mon, 19 Apr 2010 19:38:29 -0700 (PDT) Received: by 10.204.163.19 with SMTP id y19mr290555bkx.22.1271667923446; Mon, 19 Apr 2010 02:05:23 -0700 (PDT) Received: by 10.204.163.19 with SMTP id y19mr290554bkx.22.1271667923388; Mon, 19 Apr 2010 02:05:23 -0700 (PDT) Return-Path: Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by gmr-mx.google.com with SMTP id 11si881742bwz.6.2010.04.19.02.05.23; Mon, 19 Apr 2010 02:05:23 -0700 (PDT) Received-SPF: pass (google.com: domain of michaelfranzl@gmx.at designates 213.165.64.20 as permitted sender) client-ip=213.165.64.20; Received: (qmail invoked by alias); 19 Apr 2010 09:05:22 -0000 Received: from dsl-88-179.utaonline.at (EHLO [192.168.10.9]) [81.189.88.179] by mail.gmx.net (mp066) with SMTP; 19 Apr 2010 11:05:22 +0200 X-Authenticated: #55196734 X-Provags-ID: V01U2FsdGVkX18IOsMxWcAINvcxulsJghT4gEO3M2J/HLaJIsnHdY aHCy11iSfFeqpL Message-ID: <4BCC1CD0.6070201@gmx.at> Date: Mon, 19 Apr 2010 11:05:20 +0200 From: Michael Franzl User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: rack-devel@googlegroups.com Subject: multipart response possible with Rack? X-Y-GMX-Trusted: 0 X-FuHaFi: 0.64000000000000001 X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of michaelfranzl@gmx.at designates 213.165.64.20 as permitted sender) smtp.mail=michaelfranzl@gmx.at X-Original-Sender: michaelfranzl@gmx.at 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; format=flowed 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? Thanks, Michael HTTP/1.1 200/OK Content-type: multipart/mixed; boundary=xyz Content-Description: multipart-1 --xyz Content-Type: text/plain Content-Disposition: inline Content-Description: text-part-1 Some text goes here. --xyz Content-Type: application/vnd.print Content-Disposition: inline; filename=invoice.bon Content-Description: invoice-part-2 This is text inside of a file. --xyz-- -- Subscription settings: http://groups.google.com/group/rack-devel/subscribe?hl=en