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

take a look at this module

http://www.modperlcookbook.org/~geoff/modules/experimental/Apache-CachePOSTRegistry-0.01.tar.gz

I think it's doing the kind of thing you have in mind.  unfortunately,
recent versions of CGI.pm (3.01 and higher IIRC) have changed their read
syntax so the once cool hack no longer works for CGI.pm-based modules.  but
the module might give you an insight on how to solve your problem.

HTH

--Geoff

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