mirror of
https://github.com/curl/curl.git
synced 2024-12-27 06:59:43 +08:00
3eac21d86b
By default the API inhibits empty queries and fragments extracted. Unless this new flag is set. This also makes the behavior more consistent: without it set, zero length queries and fragments are considered not present in the URL. With the flag set, they are returned as a zero length strings if they were in fact present in the URL. This applies when extracting the individual query and fragment components and for the full URL. Closes #13396
40 lines
507 B
Plaintext
40 lines
507 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
GOPHER
|
|
SELECTOR
|
|
</keywords>
|
|
</info>
|
|
|
|
#
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
iMenu results error.host 1
|
|
0Selector /selector/SELECTOR /bar bar.foo.invalid 70
|
|
.
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
gopher
|
|
</server>
|
|
<name>
|
|
Gopher selector
|
|
</name>
|
|
<command>
|
|
gopher://%HOSTIP:%GOPHERPORT/1/selector/SELECTOR/%TESTNUMBER
|
|
</command>
|
|
</client>
|
|
|
|
#
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<protocol>
|
|
/selector/SELECTOR/%TESTNUMBER
|
|
</protocol>
|
|
</verify>
|
|
</testcase>
|