Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So, this seems like it should be simple, but apparently I am moreso as I cannot figure it out.
I want to read the GET URI or the POST body of a request coming into a server AS IS (no multipart for now). I'm doing a header-based, signature validation of the requests so I need it to be char-for-char what the client has POSTed.
Ideally I'd like to have my CGI turn the request it gets into an HTTP::Request since that is what the client is using to form requests via POE::Component::Client::HTTP. Then I'd do the signature verification against $request->uri . $request->content. I've played around with straight CGI.pm and without it, trying to read the incoming stuff via STDIN and GET URI checks are fine but I can't get the POST stuff to even pretend to work.
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read a raw POST request, as is
by pileofrogs (Priest) on Oct 16, 2007 at 18:07 UTC | |
by Anonymous Monk on Oct 16, 2007 at 18:34 UTC | |
|
Re: Read a raw POST request, as is
by Anonymous Monk on Oct 16, 2007 at 19:16 UTC |