From: Gustavo Luiz Duarte <gustavold@gmail.com>
To: rack-devel@googlegroups.com
Subject: How to change the body of a POST?
Date: Wed, 16 Sep 2009 17:50:12 -0300 [thread overview]
Message-ID: <bd4d39940909161350p4203610sf78a3871a45ec129@mail.gmail.com> (raw)
Hi,
I want to write a rack middleware to intercept an HTTP POST request,
change its body, and pass it to rails.
The body is XML (REST) and I intend to change it using XSLT.
I couldn't find a way to do it.
I tried to change env['rack.input'], but no success as it has no
impact in the controller's params (the way I access the xml structure
inside the controller).
Is it possible to do it with Rack? Should it be? How?
[]'s
Gustavo
next reply other threads:[~2009-09-16 20:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-16 20:50 Gustavo Luiz Duarte [this message]
2009-09-21 7:46 ` How to change the body of a POST? Hongli Lai
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=bd4d39940909161350p4203610sf78a3871a45ec129@mail.gmail.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).