Add test scenario forward-to-socks-proxy
[privoxy.git] / tests / cts / forward-to-socks-proxy / data / test4
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 </keywords>
7 </info>
8
9 <reply>
10 <data>
11 HTTP/1.1 200 OK
12 Date: Thu, 22 Jul 2010 11:22:33 GMT
13 Connection: close
14 Content-Type: text/html
15 X-Control: swsclose
16
17 Blafasel
18 </data>
19 </reply>
20
21 <proxy-reply>
22 <data>
23 HTTP/1.1 200 OK
24 Date: Thu, 22 Jul 2010 11:22:33 GMT
25 Connection: close
26 Content-Type: text/html
27 X-Control: swsclose
28
29 Blafasel
30 </data>
31 </proxy-reply>
32
33
34 <client>
35 <server>
36 http
37 socks4
38 </server>
39 <precheck>
40 # XXX: The test also requires that localhost resolves to 127.0.0.1 ...
41 perl -e "print 'Test requires %HOSTIP 127.0.0.1' if ('%HOSTIP' ne '127.0.0.1');"
42 </precheck>
43 <name>
44 Request forwarded through a SOCKS5 proxy. Destination host specified by domain name.
45 </name>
46 <features>
47 proxy
48 </features>
49 <command>
50 http://localhost:%HTTPPORT/socks5/%TESTNUMBER
51 </command>
52 </client>
53
54 <verify>
55 <protocol>
56 GET /socks5/%TESTNUMBER HTTP/1.1\r
57 Host: localhost:%HTTPPORT\r
58 User-Agent: curl/%VERSION\r
59 Accept: */*\r
60 \r
61 </protocol>
62 </verify>
63 </testcase>