curl/tests/data/test1220
Jonas Schnelli 2c905fd1f8 query-part: ignore the URI part for given protocols
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.
2011-11-24 23:31:19 +01:00

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>