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