xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | <testcase> |
| 2 | <info> |
| 3 | <keywords> |
| 4 | FTP |
| 5 | CURLOPT_PORT |
| 6 | HTTP proxy |
| 7 | </keywords> |
| 8 | </info> |
| 9 | |
| 10 | # Server-side |
| 11 | <reply> |
| 12 | <data nocheck="yes"> |
| 13 | HTTP/1.1 200 OK swsclose
|
| 14 | Date: Tue, 09 Nov 2010 14:49:00 GMT
|
| 15 | Server: test-server/fake
|
| 16 | Accept-Ranges: bytes
|
| 17 | Content-Length: 6
|
| 18 |
|
| 19 | hello |
| 20 | </data> |
| 21 | </reply> |
| 22 | |
| 23 | # Client-side |
| 24 | <client> |
| 25 | <features> |
| 26 | ftp |
| 27 | proxy |
| 28 | </features> |
| 29 | <server> |
| 30 | http |
| 31 | </server> |
| 32 | <name> |
| 33 | FTP URL and with ftp_proxy environment variable set |
| 34 | </name> |
| 35 | |
| 36 | <setenv> |
| 37 | ftp_proxy=http://%HOSTIP:%HTTPPORT/ |
| 38 | </setenv> |
| 39 | <command> |
| 40 | ftp://%HOSTIP:23456/%TESTNUMBER |
| 41 | </command> |
| 42 | |
| 43 | </client> |
| 44 | |
| 45 | # Verify data after the test has been "shot" |
| 46 | <verify> |
| 47 | <protocol> |
| 48 | GET ftp://%HOSTIP:23456/%TESTNUMBER HTTP/1.1
|
| 49 | Host: %HOSTIP:23456
|
| 50 | User-Agent: curl/%VERSION
|
| 51 | Accept: */*
|
| 52 | Proxy-Connection: Keep-Alive
|
| 53 |
|
| 54 | </protocol> |
| 55 | </verify> |
| 56 | </testcase> |