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