xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | <testcase> |
| 2 | #based off test 712 |
| 3 | <info> |
| 4 | <keywords> |
| 5 | FTP |
| 6 | PASV |
| 7 | RETR |
| 8 | HTTP |
| 9 | HTTP CONNECT |
| 10 | proxytunnel |
| 11 | CURLOPT_CONNECT_TO |
| 12 | </keywords> |
| 13 | </info> |
| 14 | # |
| 15 | # Server-side |
| 16 | <reply> |
| 17 | <connect> |
| 18 | HTTP/1.1 200 Connection established |
| 19 | |
| 20 | </connect> |
| 21 | |
| 22 | <data nocheck="yes"> |
| 23 | silly content |
| 24 | </data> |
| 25 | |
| 26 | <datacheck> |
| 27 | HTTP/1.1 200 Connection established |
| 28 | |
| 29 | HTTP/1.1 200 Connection established |
| 30 | |
| 31 | silly content |
| 32 | </datacheck> |
| 33 | </reply> |
| 34 | |
| 35 | # |
| 36 | # Client-side |
| 37 | <client> |
| 38 | <features> |
| 39 | proxy |
| 40 | </features> |
| 41 | <server> |
| 42 | ftp |
| 43 | http-proxy |
| 44 | </server> |
| 45 | <features> |
| 46 | http |
| 47 | proxy |
| 48 | </features> |
| 49 | <name> |
| 50 | FTP fetch with --proxy set to http:// and with --connect-to |
| 51 | </name> |
| 52 | <command> |
| 53 | ftp://ftp.example.com.%TESTNUMBER/%TESTNUMBER --connect-to ::connect.example.com.%TESTNUMBER:%FTPPORT --proxytunnel --proxy http://%HOSTIP:%PROXYPORT |
| 54 | </command> |
| 55 | </client> |
| 56 | |
| 57 | # |
| 58 | # Verify data after the test has been "shot" |
| 59 | <verify> |
| 60 | <protocol> |
| 61 | USER anonymous
|
| 62 | PASS ftp@example.com
|
| 63 | PWD
|
| 64 | EPSV
|
| 65 | TYPE I
|
| 66 | SIZE %TESTNUMBER
|
| 67 | RETR %TESTNUMBER
|
| 68 | QUIT
|
| 69 | </protocol> |
| 70 | </verify> |
| 71 | </testcase> |