From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.229.238.84 with SMTP id kr20cs54129qcb; Mon, 20 Feb 2012 16:41:17 -0800 (PST) Return-Path: Received-SPF: pass (google.com: domain of rack-devel+bncCIGXwubhFRCq0Iv6BBoEEjQS0Q@googlegroups.com designates 10.236.116.197 as permitted sender) client-ip=10.236.116.197; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rack-devel+bncCIGXwubhFRCq0Iv6BBoEEjQS0Q@googlegroups.com designates 10.236.116.197 as permitted sender) smtp.mail=rack-devel+bncCIGXwubhFRCq0Iv6BBoEEjQS0Q@googlegroups.com; dkim=pass header.i=rack-devel+bncCIGXwubhFRCq0Iv6BBoEEjQS0Q@googlegroups.com Received: from mr.google.com ([10.236.116.197]) by 10.236.116.197 with SMTP id g45mr9183859yhh.0.1329784877014 (num_hops = 1); Mon, 20 Feb 2012 16:41:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=x-beenthere:mime-version:date:in-reply-to:references:user-agent :x-http-useragent: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 :content-transfer-encoding; bh=7eBb32Jmeu8jiXOr59u4Jdo0v5Wmu6FHLakxVFhd2Oo=; b=T90hOPcVkPUiP+yAwKVsUe0BbI0/sxvtzX9YMvYQmPDEDUop4thOfYNVgJniZfU/E8 1+3y9NnLrlxjCG3YmZ9hptuPyNizdPdbsIe1AApnJR4LfSc29o0dwF7m1KgmOXc+7oSt JhmWhUzshFRHL1t32Ea8P74vGo41UxN4q/70s= Received: by 10.236.116.197 with SMTP id g45mr2615584yhh.0.1329784874554; Mon, 20 Feb 2012 16:41:14 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.101.203.37 with SMTP id f37ls1331857anq.9.gmail; Mon, 20 Feb 2012 16:41:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.131.4 with SMTP id l4mr2597810yhi.2.1329784873263; Mon, 20 Feb 2012 16:41:13 -0800 (PST) Received: by r1g2000yqk.googlegroups.com with HTTP; Mon, 20 Feb 2012 16:41:13 -0800 (PST) Date: Mon, 20 Feb 2012 16:41:13 -0800 (PST) In-Reply-To: <20120220192925.GA5404@dcvr.yhbt.net> References: <20120220192925.GA5404@dcvr.yhbt.net> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2,gzip(gfe) Message-ID: <20ced2c1-e6bf-4476-ab33-81c856cd309d@r1g2000yqk.googlegroups.com> Subject: Re: Making a CGI request to a program (fossil-scm) from Rack (Sinatra) From: Guillermo Estrada To: Rack Development X-Original-Sender: phrozen10@gmail.com X-Original-Authentication-Results: ls.google.com; spf=pass (google.com: domain of phrozen10@gmail.com designates internal as permitted sender) smtp.mail=phrozen10@gmail.com; dkim=pass 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: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Rack-Legacy might be just EXACTLY what I was looking for :D Thanks for the link. I just need to learn it and check if it's usable. On Feb 20, 1:29=A0pm, Eric Wong wrote: > Guillermo Estrada wrote: > > Is there a way to take a request from my Rack application, take some > > parameters, send them to the program (fossil) as a CGI request (This I > > don't know how) and then get the output html to analyze/modify/etc... > > and then sending the response from my Rack app? > > There's rack-legacy: git://github.com/eric1234/rack-legacy > > unicorn still has a Unicorn::App::ExecCGI module I wrote > before rack-legacy existed: > =A0http://bogomips.org/unicorn.git/tree/lib/unicorn/app/exec_cgi.rb > (The cgit instance on bogomips.org still runs off ExecCGI).