lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | HTTP |
| 5 | HTTP CONNECT |
| 6 | proxytunnel |
| 7 | FTP |
| 8 | FAILURE |
| 9 | </keywords> |
| 10 | |
| 11 | </info> |
| 12 | # |
| 13 | # Server-side |
| 14 | <reply> |
| 15 | <connect> |
| 16 | HTTP/1.1 501 Method not implemented swsclose
|
| 17 | Date: Thu, 09 Nov 2010 14:49:00 GMT
|
| 18 | Connection: close
|
| 19 | Content-Length: 0
|
| 20 |
|
| 21 | </connect> |
| 22 | </reply> |
| 23 | |
| 24 | # |
| 25 | # Client-side |
| 26 | <client> |
| 27 | <features> |
| 28 | ftp |
| 29 | </features> |
| 30 | <server> |
| 31 | http |
| 32 | </server> |
| 33 | <name> |
| 34 | HTTP CONNECT with proxytunnel to unsupported FTP URL |
| 35 | </name> |
| 36 | <command> |
| 37 | ftp://test-number:1059/wanted/page -p -x %HOSTIP:%HTTPPORT |
| 38 | </command> |
| 39 | </client> |
| 40 | |
| 41 | # |
| 42 | # Verify data after the test has been "shot" |
| 43 | <verify> |
| 44 | # The server doesn't implement CONNECT for ftp, so this must be a failure test |
| 45 | <errorcode> |
| 46 | 56 |
| 47 | </errorcode> |
| 48 | <strip> |
| 49 | ^User-Agent:.* |
| 50 | </strip> |
| 51 | <protocol> |
| 52 | CONNECT test-number:1059 HTTP/1.1
|
| 53 | Host: test-number:1059
|
| 54 | Proxy-Connection: Keep-Alive
|
| 55 |
|
| 56 | </protocol> |
| 57 | </verify> |
| 58 | </testcase> |