| xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> | ||||
| 3 | <keywords> | ||||
| 4 | HTTP | ||||
| 5 | HTTP GET | ||||
| 6 | HTTP proxy | ||||
| 7 | </keywords> | ||||
| 8 | </info> | ||||
| 9 | |||||
| 10 | # Server-side | ||||
| 11 | <reply> | ||||
| 12 | <connect> | ||||
| 13 | HTTP/1.1 200 OK | ||||
| 14 | We-are: good | ||||
| 15 | |||||
| 16 | </connect> | ||||
| 17 | |||||
| 18 | </reply> | ||||
| 19 | # Client-side | ||||
| 20 | <client> | ||||
| 21 | <server> | ||||
| 22 | http | ||||
| 23 | http-proxy | ||||
| 24 | </server> | ||||
| 25 | <tool> | ||||
| 26 | lib%TESTNUMBER | ||||
| 27 | </tool> | ||||
| 28 | <name> | ||||
| 29 | HTTP request-injection in URL sent over proxy | ||||
| 30 | </name> | ||||
| 31 | <command> | ||||
| 32 | "http://the.old.moo:%HTTPPORT/%TESTNUMBER" %HOSTIP:%PROXYPORT | ||||
| 33 | </command> | ||||
| 34 | <features> | ||||
| 35 | proxy | ||||
| 36 | </features> | ||||
| 37 | </client> | ||||
| 38 | |||||
| 39 | # it should be detected and an error should be reported | ||||
| 40 | <verify> | ||||
| 41 | # 3 == CURLE_URL_MALFORMAT | ||||
| 42 | <errorcode> | ||||
| 43 | 3 | ||||
| 44 | </errorcode> | ||||
| 45 | </verify> | ||||
| 46 | </testcase> | ||||