> 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.

I wish i could avoid the above methods being called, but unfortunately
the application framework i am working in, calls the above methods
(which of course cause the read from STDIN). 

My particular bit of code (in the application i am working in) is
treated as a "plugin" and as such is passed things like the request
object, but only after some internal pre-processing. 

My ideal situation would be if i could someone query the passed (and
original) $r to give me the raw contents... 




> 
> 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