curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder Daniel himself.

Re: Strange behavior of Expect 100 Continue

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 6 Feb 2025 11:30:11 +0100 (CET)

On Mon, 3 Feb 2025, [Quipsy] Markus Karg via curl-library wrote:

> The application is using curl easy API to create a curl instance, sends a
> request, closes the instances, then does the same again, etc. - which is
> working PRETTY WELL but rather slow.
>
> In an attempt to speed up things we wanted to reuse the existing http/1.1
> connection, so we removed the closing and reinitializing of curl between
> each http invocation.
>
> But now the second invocation gets "100 Continue" response instead of "200
> OK"...?!

From a libcurl point of view it makes the same identical HTTP request wether
the connection is reused or fresh. It should not change the server behavior as
to a 100 is returned or not. I would expect it to come or not come independent
of connection reuse.

I think this implies a bug somewhere.

-- 
  / daniel.haxx.se || https://rock-solid.curl.dev
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2025-02-06