curl/add_file_name_to_url: use the libcurl URL parser

instead of the custom error-prone parser, to extract and update the path
of the given URL

Closes #9683
This commit is contained in:
Daniel Stenberg 2022-10-10 10:55:05 +02:00
parent b82eb72d80
commit d24a2ffefe
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 62 additions and 52 deletions

View file

@ -36,7 +36,7 @@ a few bytes
# Verify data after the test has been "shot"
<verify>
<protocol>
PUT /we/want/%TESTNUMBERte%5B%5Dst.txt HTTP/1.1
PUT /we/want/%TESTNUMBERte%5b%5dst.txt HTTP/1.1
Host: %HOSTIP:%HTTPPORT
User-Agent: curl/%VERSION
Accept: */*