xref: /curl/tests/data/test1945 (revision 7c8c7236)
1<testcase>
2<info>
3<keywords>
4curl_easy_header
5CONNECT
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data nocheck="yes">
12HTTP/1.1 200 OK
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Server:       test with trailing space
15Content-Type: text/html
16Content-Length: 0
17Set-Cookie: onecookie=data;
18Set-Cookie: secondcookie=2data;
19Set-Cookie: cookie3=data3;
20Location: /%TESTNUMBER0002
21
22</data>
23<connect>
24HTTP/1.1 200 Sure go ahead
25Server: from the connect
26Silly-thing: yes yes
27
28</connect>
29</reply>
30
31# Client-side
32<client>
33<features>
34proxy
35SSL
36headers-api
37</features>
38<server>
39http
40http-proxy
41</server>
42
43<name>
44curl_easy_nextheader with server + CONNECT
45</name>
46<tool>
47lib%TESTNUMBER
48</tool>
49
50<command>
51http://hello:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
52</command>
53</client>
54
55# Verify data after the test has been "shot"
56<verify>
57<proxy>
58CONNECT hello:%HTTPPORT HTTP/1.1
59Host: hello:%HTTPPORT
60Proxy-Connection: Keep-Alive
61
62</proxy>
63<stdout>
64 Server == from the connect (0/2)
65 Silly-thing == yes yes (0/1)
66 Date == Thu, 09 Nov 2010 14:49:00 GMT (0/1)
67 Server == test with trailing space (1/2)
68 Content-Type == text/html (0/1)
69 Content-Length == 0 (0/1)
70 Set-Cookie == onecookie=data; (0/3)
71 Set-Cookie == secondcookie=2data; (1/3)
72 Set-Cookie == cookie3=data3; (2/3)
73 Location == /19450002 (0/1)
74</stdout>
75</verify>
76</testcase>
77