Imported Upstream version 7.59.0
[platform/upstream/curl.git] / tests / data / test1904
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP CONNECT
7 HTTP proxy
8 proxytunnel
9 </keywords>
10 </info>
11
12 #
13 # Server-side
14 <reply>
15 <data>
16 HTTP/1.1 200 OK
17 Date: Thu, 09 Nov 2010 14:49:00 GMT
18 Server: test-server/fake swsclose
19 Content-Type: text/html
20 Funny-head: yesyes
21 Content-Length: 9
22
23 contents
24 </data>
25 <connect>
26 HTTP/1.1 204 Sure go ahead
27
28 </connect>
29 <datacheck>
30 HTTP/1.1 204 Sure go ahead
31
32 HTTP/1.1 200 OK
33 Date: Thu, 09 Nov 2010 14:49:00 GMT
34 Server: test-server/fake swsclose
35 Content-Type: text/html
36 Funny-head: yesyes
37 Content-Length: 9
38
39 contents
40 </datacheck>
41 </reply>
42
43 #
44 # Client-side
45 <client>
46 <server>
47 http
48 http-proxy
49 </server>
50  <name>
51 HTTP CONNECT with 204 response
52  </name>
53  <command>
54 http://test.1904:%HTTPPORT/we/want/that/page/1904 -p --proxy %HOSTIP:%PROXYPORT
55 </command>
56 </client>
57
58 #
59 # Verify data after the test has been "shot"
60 <verify>
61 <strip>
62 ^User-Agent:.*
63 </strip>
64 <proxy>
65 CONNECT test.1904:%HTTPPORT HTTP/1.1
66 Host: test.1904:%HTTPPORT
67 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
68 Proxy-Connection: Keep-Alive
69
70 </proxy>
71 <protocol>
72 GET /we/want/that/page/1904 HTTP/1.1
73 Host: test.1904:%HTTPPORT
74 User-Agent: curl/7.10.7-pre2 (i686-pc-linux-gnu) libcurl/7.10.7-pre2 OpenSSL/0.9.7a zlib/1.1.3
75 Accept: */*
76
77 </protocol>
78 </verify>
79 </testcase>