mirror of
https://github.com/curl/curl.git
synced 2026-07-30 11:28:05 +03:00
curl/get_url_file_name: use libcurl URL parser
To avoid URL tricks, use the URL parser for this. This update changes curl's behavior slightly in that it will ignore the possible query part from the URL and only use the file name from the actual path from the URL. I consider it a bugfix. "curl -O localhost/name?giveme-giveme" will now save the output in the local file named 'name' Updated test 1210 to verify Assisted-by: Jay Satiro Closes #9684
This commit is contained in:
parent
c96462addc
commit
671adfa493
2 changed files with 50 additions and 46 deletions
|
|
@ -39,7 +39,7 @@ HTTP GET with -J without Content-Disposition
|
|||
CURL_TESTDIR=%PWD/log
|
||||
</setenv>
|
||||
<command option="no-output,no-include">
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O
|
||||
http://%HOSTIP:%HTTPPORT/%TESTNUMBER?junk -J -O
|
||||
</command>
|
||||
</client>
|
||||
|
||||
|
|
@ -47,7 +47,7 @@ http://%HOSTIP:%HTTPPORT/%TESTNUMBER -J -O
|
|||
# Verify data after the test has been "shot"
|
||||
<verify>
|
||||
<protocol>
|
||||
GET /%TESTNUMBER HTTP/1.1
|
||||
GET /%TESTNUMBER?junk HTTP/1.1
|
||||
Host: %HOSTIP:%HTTPPORT
|
||||
User-Agent: curl/%VERSION
|
||||
Accept: */*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue