test1468 (944B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP GET 6 SOCKS5 7 SOCKS5h 8 UnixSockets 9 </keywords> 10 </info> 11 12 # 13 # Server-side 14 <reply> 15 <data> 16 HTTP/1.1 200 OK 17 Date: Tue, 09 Nov 2010 14:49:00 GMT 18 Server: test-server/fake 19 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT 20 ETag: "21025-dc7-39462498" 21 Accept-Ranges: bytes 22 Content-Length: 6 23 Connection: close 24 Content-Type: text/html 25 Funny-head: yesyes 26 27 -foo- 28 </data> 29 </reply> 30 31 # 32 # Client-side 33 <client> 34 <features> 35 proxy 36 UnixSockets 37 </features> 38 <server> 39 http 40 socks5unix 41 </server> 42 <name> 43 HTTP GET with host name using SOCKS5h via Unix sockets 44 </name> 45 <command> 46 http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://localhost%SOCKSUNIXPATH 47 </command> 48 </client> 49 50 # 51 # Verify data after the test has been "shot" 52 <verify> 53 <protocol> 54 GET /%TESTNUMBER HTTP/1.1 55 Host: this.is.a.host.name:%HTTPPORT 56 User-Agent: curl/%VERSION 57 Accept: */* 58 59 </protocol> 60 <socks> 61 atyp 3 => this.is.a.host.name 62 </socks> 63 </verify> 64 </testcase>