Thanks to Tom and Geoff for your helpful hints. 

I've got a few ideas which i'm going to try based on  your ideas and
hopefully one of them will work. 

ps: Geoff, the domain www.modperlcookbook.org seems to have lost its A 
    record (modperlcookbook.org seems to be fine...). 


> 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