Re: [PATCH/RFC] Allow curl to rewind the RPC read buffer at any time
- From
Daniel Stenberg <daniel@haxx.se>
- Date
- Dec 1, 2009, 18:18 UTC
- Message-ID
- <alpine.DEB.2.00.0912011914270.30348@tvnag.unkk.fr>
- In-Reply-To
- <20091201161428.GC21299@spearce.org>
On Tue, 1 Dec 2009, Shawn O. Pearce wrote:
> The #@!*@!* library should be able to generate two requests back-to-back to > the same URL without needing to rewind the 2nd request.
If '#@!*@!*' is your pattern for matching libcurl or curl, then sure libcurl certainly has no problem at all to send as many requests you like back-to-back.
The rewinding business is only really necessary for multipass authentication when Expect: 100-continue doesn't work (and thus libcurl has started to send data that the server will discard and thus is needed to get sent again). And that's not something you can blame "the #@!*@!* library" for, but rather your server end and/or how HTTP is defined to work.
-- / daniel.haxx.se