2010-01-07 00:01:48 +08:00
|
|
|
<testcase>
|
|
|
|
# Test that the fragment is not send as part of the path.
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
CURLOPT_URL
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
# Server-side
|
2017-02-19 05:18:17 +08:00
|
|
|
<reply>
|
2010-01-07 00:01:48 +08:00
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Content-Length: 6
|
|
|
|
|
|
|
|
hello
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2023-10-04 17:35:54 +08:00
|
|
|
<name>
|
2010-01-22 15:32:09 +08:00
|
|
|
HTTP GET with URL that contains fragment after the path
|
2023-10-04 17:35:54 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER#test
|
2010-01-07 00:01:48 +08:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2010-01-07 00:01:48 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2010-01-07 00:01:48 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|