But there's nobody reading the STDIN if you avoid doing something like this:

my $cgi = new CGI();
my $rq = Apache::Request->new($r);
my $content = $r->content();

Why would you do that if you know that none of these methods will work because you don't get a real post.

Tom

simran wrote:
You could use

$r->read($buf, $bytes_to_read, [$offset])

if I'm not completely wrong.

See:
http://perl.apache.org/docs/1.0/api/Apache.html#_r_E_gt_read__buf___bytes_to_read____offset__


It would work if something had not already read the data once from the
filehandle... and since its STDIN i don't think i can do a seek(...) on
teh filehandle to put it at the start again... so what i really need is
to be able to get the raw content from $r...











--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to