test717 (974B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 SOCKS5 6 all_proxy 7 </keywords> 8 </info> 9 # 10 # Server-side 11 <reply> 12 <data> 13 HTTP/1.1 200 OK 14 Date: Tue, 09 Nov 2010 14:49:00 GMT 15 Server: test-server/fake 16 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 17 ETag: "21025-dc7-39462498" 18 Accept-Ranges: bytes 19 Content-Length: 6 20 Connection: close 21 Content-Type: text/html 22 Funny-head: yesyes 23 24 -foo- 25 </data> 26 # method 2 is SOCKS5 asking for user+password 27 <servercmd> 28 method 2 29 user uz3r 30 password p4ssworm 31 backendport %HTTPPORT 32 </servercmd> 33 </reply> 34 35 # 36 # Client-side 37 <client> 38 <server> 39 socks5 40 http 41 </server> 42 <name> 43 SOCKS5 proxy auth 44 </name> 45 46 # target a port that won't work without the SOCKS magic 47 <command> 48 http://%HOSTIP:1/%TESTNUMBER -x socks5://uz3r:p4ssworm@%HOSTIP:%SOCKSPORT 49 </command> 50 <features> 51 proxy 52 </features> 53 </client> 54 55 # 56 # Verify data after the test has been "shot" 57 <verify> 58 <protocol> 59 GET /%TESTNUMBER HTTP/1.1 60 Host: %HOSTIP:1 61 User-Agent: curl/%VERSION 62 Accept: */* 63 64 </protocol> 65 </verify> 66 </testcase>