xref: /curl/tests/data/test1526 (revision 3fd80c7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6HTTP CONNECT
7HTTP proxy
8proxytunnel
9CURLOPT_PROXYHEADER
10</keywords>
11</info>
12
13# Server-side
14<reply>
15<connect>
16HTTP/1.1 200 OK
17Server: present
18
19</connect>
20<data>
21HTTP/1.1 200 OK swsclose
22Date: Tue, 09 Nov 2010 14:49:00 GMT
23Server: test-server/fake
24Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
25ETag: "21025-dc7-39462498"
26
27</data>
28<datacheck>
29HTTP/1.1 200 OK
30Server: present
31
32HTTP/1.1 200 OK swsclose
33Date: Tue, 09 Nov 2010 14:49:00 GMT
34Server: test-server/fake
35Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
36ETag: "21025-dc7-39462498"
37
38</datacheck>
39</reply>
40
41# Client-side
42<client>
43<server>
44http
45http-proxy
46</server>
47<tool>
48lib%TESTNUMBER
49</tool>
50<name>
51CURLOPT_PROXYHEADER: separate host/proxy headers
52</name>
53<command>
54 http://the.old.moo.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
55</command>
56<features>
57proxy
58</features>
59</client>
60
61# Verify data after the test has been "shot"
62<verify>
63<proxy>
64CONNECT the.old.moo.%TESTNUMBER:%HTTPPORT HTTP/1.1
65Host: the.old.moo.%TESTNUMBER:%HTTPPORT
66Proxy-Connection: Keep-Alive
67User-Agent: Proxy Agent
68
69</proxy>
70<protocol>
71PUT /%TESTNUMBER HTTP/1.1
72Host: the.old.moo.%TESTNUMBER:%HTTPPORT
73Accept: */*
74User-Agent: Http Agent
75Content-Length: 13
76
77Hello Cloud!
78</protocol>
79</verify>
80</testcase>
81