Re: Accessing POST Data More Than Once

Ben Gribaudo <[email protected]> Tue, 15 Nov 2005 09:35:44 -0600
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
Hi,

Katarina WONG wrote:
 > I do not know what you expect but I should think that a rewind is in 
order
 > if you want to read several times from a stream. Also, I reckon this 
will
 > not work for all IO instances (seekable streams only).

Sounds reasonable. In fact, a rewind method is mentioned in the docs (on 
http://wiki.modruby.net/en/?Apache%3A%3ARequest). However, it seems that 
rewind wasn't implemented in the Debian/Ubuntu version we are using 
(libapache2-mod-ruby 1.2.4-1). If I try to call Apache.request.rewind, I 
get "undefined method `rewind' for #<Apache::Request:0xb6ca91a4> 
(NoMethodError)"

Ben