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