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