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: Thu, 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 <server> 26 ftp 27 http 28 </server> 29 <tool> 30 lib562 31 </tool> 32 <name> 33 FTP type=A URL and CURLOPT_PORT set and proxy 34 </name> 35 36 <setenv> 37 ftp_proxy=http://%HOSTIP:%HTTPPORT/ 38 </setenv> 39 # note that we need quotes around the URL below to make sure the shell doesn't 40 # treat the semicolon as a separator! 41 <command> 42 "ftp://%HOSTIP:23456/563;type=A" %FTPPORT 43 </command> 44 45 </client> 46 47 # Verify data after the test has been "shot" 48 <verify> 49 <protocol> 50 GET FTP://%HOSTIP:%FTPPORT/563;type=A HTTP/1.1 51 Host: %HOSTIP:%FTPPORT 52 Accept: */* 53 Proxy-Connection: Keep-Alive 54 55 </protocol> 56 </verify> 57 </testcase> 58