Re: Accessing POST Data More Than Once

Brian Candler <[email protected]> Tue, 15 Nov 2005 11:47:38 +0000
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <[email protected]>
On Tue, Nov 15, 2005 at 12:44:28PM +0100, Katarina WONG wrote:
> >I think some people would expect read to work the same here as it does
> >for all other IO objects.
> 
> 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).

I think that was exactly what was meant :-)

You can't rewind the web browser which is sending you POST content - so you
get one bite at the cherry.