xref: /curl/tests/data/test2054 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6CURLOPT_CONNECT_TO
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Tue, 09 Nov 2010 14:49:00 GMT
16Content-Length: 3
17Content-Type: text/plain
18
19OK
20</data>
21</reply>
22
23#
24# Client-side
25<client>
26<server>
27http
28</server>
29<name>
30Connect to specific host: use the first "connect-to" string that matches
31</name>
32
33<command>
34http://%HOSTIP:%HTTPPORT/%TESTNUMBER --connect-to foo::bar: --connect-to :123::456 --next http://www.example.com:%HTTPPORT/%TESTNUMBER --connect-to www.example.com::%HOSTIP: --connect-to www.example.com::foo: --next http://%HOSTIP:8083/%TESTNUMBER --connect-to :8083::%HTTPPORT --connect-to :8083::123 --next http://www.example.com:8084/%TESTNUMBER --connect-to www.example.com:8084:%HOSTIP:%HTTPPORT --connect-to www.example.com:8084:foo:123
35</command>
36</client>
37
38#
39# Verify data after the test has been "shot"
40<verify>
41<protocol>
42GET /%TESTNUMBER HTTP/1.1
43Host: %HOSTIP:%HTTPPORT
44User-Agent: curl/%VERSION
45Accept: */*
46
47GET /%TESTNUMBER HTTP/1.1
48Host: www.example.com:%HTTPPORT
49User-Agent: curl/%VERSION
50Accept: */*
51
52GET /%TESTNUMBER HTTP/1.1
53Host: %HOSTIP:8083
54User-Agent: curl/%VERSION
55Accept: */*
56
57GET /%TESTNUMBER HTTP/1.1
58Host: www.example.com:8084
59User-Agent: curl/%VERSION
60Accept: */*
61
62</protocol>
63
64</verify>
65</testcase>
66