in reply to How do I read POST data that is not encoded, and was submitted without a parameter name
I use it to read in a XMLRPC request which I process with Frontier::RPC2. But you can use it to read in any XML POST data ( no multipart forms ... ) and do some processing on it.sub _read_content { my ($self) = @_; my $length = $ENV{CONTENT_LENGTH}; my $buf; read STDIN, $buf, $length; return $buf; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading RAW POST data
by IlyaM (Parson) on Dec 15, 2001 at 05:21 UTC | |
by grinder (Bishop) on Dec 16, 2001 at 20:23 UTC | |
by IlyaM (Parson) on Dec 18, 2001 at 15:35 UTC | |
by IlyaM (Parson) on Dec 17, 2001 at 01:42 UTC |