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: CURLUPART_PATH not inserting leading slash

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 8 Jun 2023 09:18:48 +0200 (CEST)

On Thu, 8 Jun 2023, Pedro Henrique via curl-library wrote:

> but the code below results in 400 Bad Request due to the lack of the forward slash.
> So is it a bug or not?

I can confirm that this is a bug and that it still exists in current code.

If you set the path like that and extract the full URL it works, but not if
you set the path and then extract the path.

I'll fix and make sure we add test cases for this. Thanks for reporting!

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2023-06-08