mirror of
https://github.com/moparisthebest/curl
synced 2024-11-05 00:55:04 -05:00
2c905fd1f8
By setting PROTOPT_NOURLQUERY in the protocol handler struct, the protocol will get the "query part" of the URL cut off before the data is handled by the protocol-specific code. This makes libcurl adhere to RFC3986 section 2.2. Test 1220 is added to verify a file:// URL with query-part.
31 lines
436 B
Plaintext
31 lines
436 B
Plaintext
<testcase>
|
|
# Server-side
|
|
<reply>
|
|
<data>
|
|
</data>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
file
|
|
</server>
|
|
<name>
|
|
file:// URLs with query string
|
|
</name>
|
|
<command>
|
|
file://localhost/%PWD/log/test1220.txt?a_query=foobar#afragment
|
|
</command>
|
|
<file name="log/test1220.txt">
|
|
contents in a single file
|
|
</file>
|
|
</client>
|
|
|
|
# Verify data after the test has been "shot"
|
|
<verify>
|
|
<stdout>
|
|
contents in a single file
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|