Re: data from STDIN

2004-04-15 Thread simran
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:

Re: data from STDIN

2004-04-15 Thread Geoffrey Young
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_readoffset__ > > > It would work if something had not already read the data once from the >

Re: data from STDIN

2004-04-15 Thread Tom Schindl
simran wrote: 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 coul

Re: data from STDIN

2004-04-15 Thread simran
> 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 co

Re: data from STDIN

2004-04-15 Thread Tom Schindl
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

Re: data from STDIN

2004-04-15 Thread simran
> 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_readoffset__ It would work if something had not already read the data once from the filehandle... and since

Re: data from STDIN

2004-04-15 Thread Tom Schindl
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_readoffset__ -- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html Li

data from STDIN

2004-04-14 Thread simran
ssage - Now, when my Apache::Request (or CGI::Query) object get instantiated, it reads in the data from STDIN. I assume it expects data with the content-type: application/x-www-form-urlencoded as is indicative to me by the error i get in my