rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
From: Guillermo Estrada <phrozen10@gmail.com>
To: Rack Development <rack-devel@googlegroups.com>
Subject: Making a CGI request to a program (fossil-scm) from Rack (Sinatra)
Date: Sun, 19 Feb 2012 17:37:16 -0800 (PST)	[thread overview]
Message-ID: <c9ad77de-b687-4d16-8ca4-809f12e6730b@p7g2000yqk.googlegroups.com> (raw)

Hi, I just hope this is the place where I'll find the answer.

Fossil-Scm is a Source Code Management System that has a built in web
server for tracking issues and a wiki and such. It supports CGI also
to avoid running long term processes while hosting multiple repos. The
documentation suggests creating a simple CGI script like this one for
each repo you would like to host:

#!/usr/bin/fossil
repository: /route/to/repo/name.fossil

And this is all fine and works wonders in my web hosting.

What I want to do is to create a Sinatra (Rack) app to manage those
repositories, user authentication, common operations, create, delete,
etc... But in order to do that, I want to be able to manipulate the
route and the output of those webpages called via CGI.

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?

Any help would be GREATLY appreciated.

             reply	other threads:[~2012-02-20  8:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-20  1:37 Guillermo Estrada [this message]
2012-02-20 13:18 ` Making a CGI request to a program (fossil-scm) from Rack (Sinatra) Steve Klabnik
2012-02-20 16:24 ` Joshua Ballanco
2012-02-20 19:29 ` Eric Wong
2012-02-21  0:41   ` Guillermo Estrada
2012-02-20 21:08 ` James Tucker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://groups.google.com/group/rack-devel

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9ad77de-b687-4d16-8ca4-809f12e6730b@p7g2000yqk.googlegroups.com \
    --to=rack-devel@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).