| 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 |
proxy |
| 30 |
</features> |
| 31 |
<server> |
| 32 |
http |
| 33 |
</server> |
| 34 |
<name> |
| 35 |
HTTP CONNECT with proxytunnel to unsupported FTP URL |
| 36 |
</name> |
| 37 |
<command> |
| 38 |
ftp://test-number:1059/wanted/page -p -x %HOSTIP:%HTTPPORT |
| 39 |
</command> |
| 40 |
</client> |
| 41 |
|
| 42 |
# |
| 43 |
# Verify data after the test has been "shot" |
| 44 |
<verify> |
| 45 |
# The server doesn't implement CONNECT for ftp, so this must be a failure test |
| 46 |
<errorcode> |
| 47 |
56 |
| 48 |
</errorcode> |
| 49 |
<strip> |
| 50 |
^User-Agent:.* |
| 51 |
</strip> |
| 52 |
<protocol> |
| 53 |
CONNECT test-number:1059 HTTP/1.1 |
| 54 |
Host: test-number:1059 |
| 55 |
Proxy-Connection: Keep-Alive |
| 56 |
|
| 57 |
</protocol> |
| 58 |
</verify> |
| 59 |
</testcase> |