Re: errors in post request

Am Mittwoch, 7. Mai 2003 11:19 schrieb Daniel Stenberg:
> On Wed, 7 May 2003, Hanspeter Halle wrote:
> > 2. Switch off pipelining. So for every request a new TCP-connection will
> > be used.
>
> Sorry for bursting in here, on a different matter:
>
> I'm curious here. Are those the two options libwww offers? You either use
> pipelining OR you use a new TCP-connection for each request?
>
Sorry, my former statement was not correct. If you switch off pipelinig, the 
2nd request is delayed until the 1st is completely processed. That's the way 
it should be but I can't remember if libwww really works this way. Only if 
you switch back to HTTP 1.0 you'll get a single connection for each request.

> > 3. Try if my patch (see below) can still be applied to the current
> > version of libwww. It delays the transmission of the 2nd HTTP-Request
> > until the data for the 1st one has completely delivered.
>
> ... and only with your patch can you actually make multiple requests on the
> same connection without pipelining?
>

The patch still allowes pipelining, i.e. the 2nd request will be sent after 
the post data of the 1st request but before the result of the 1st request is 
being received.

> I'm sorry if these questions sound stupid, please point me to a suitable
> document where I can read this info if there's a suitable one somewhere.

libwww sources and RFC2616.

Hanspeter

Received on Wednesday, 7 May 2003 05:43:08 UTC