curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. 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 himself.

Re: Strange connection persistence problem

From: Daniel Stenberg via curl-library <>
Date: Thu, 30 Nov 2023 18:12:18 +0100 (CET)

On Thu, 30 Nov 2023, wrote:

> Moreover, if you have noticed, the header Host field is correct but the GET
> location is not.

That's actually one of the details in this issue that makes me suspect this
problem is perhaps caused by something in your application.

> Are you checking the _URL memory address (pointer) somewhere in the library
> code developing curl_easy_setopt(curl, CURLOPT_URL, _URL)?

It always copies the URL:

You can also see that the code is still the same in git master:

Remember that there are quite a few users of libcurl and nobody has reported
this problem before. The issue has to be somewhat more elusive than so.

> I have no better ideas!

That's a reason why it is important to create a test application or other
recipe that can reproduce the problem. Only then can we properly learn what
causes this.

  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
Received on 2023-11-30