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