| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> | 
 | 2 | # Test that no fragment is not send as part of the path | 
 | 3 | # when the URI contains 2 '#' (does not follow RFC 2396) | 
 | 4 | <info> | 
 | 5 | <keywords> | 
 | 6 | HTTP | 
 | 7 | CURLOPT_URL | 
 | 8 | </keywords> | 
 | 9 | </info> | 
 | 10 |  | 
 | 11 | # Server-side | 
 | 12 | <reply> | 
 | 13 | <data> | 
 | 14 | HTTP/1.1 200 OK | 
 | 15 | Content-Length: 6 | 
 | 16 |  | 
 | 17 | hello | 
 | 18 | </data> | 
 | 19 | </reply> | 
 | 20 |  | 
 | 21 | # Client-side | 
 | 22 | <client> | 
 | 23 | <server> | 
 | 24 | http | 
 | 25 | </server> | 
 | 26 |  <name> | 
 | 27 | HTTP GET with URL whose fragment contains a # (which is illegal) | 
 | 28 |  </name> | 
 | 29 |  <command> | 
 | 30 | http://%HOSTIP:%HTTPPORT/%TESTNUMBER?q=foobar#fragment#fragment2 | 
 | 31 | </command> | 
 | 32 | </client> | 
 | 33 |  | 
 | 34 |  | 
 | 35 | # Verify data after the test has been "shot" | 
 | 36 | <verify> | 
 | 37 | <protocol> | 
 | 38 | GET /%TESTNUMBER?q=foobar HTTP/1.1
 | 
 | 39 | Host: %HOSTIP:%HTTPPORT
 | 
 | 40 | User-Agent: curl/%VERSION
 | 
 | 41 | Accept: */*
 | 
 | 42 | 
 | 
 | 43 | </protocol> | 
 | 44 | </verify> | 
 | 45 | </testcase> |