18eb07f1ec8d78a64278f53e6cbc355a6addc8ca
[platform/upstream/curl.git] / tests / data / test1509
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 # Server-side
13 <reply>
14 <servercmd>
15 connection-monitor
16 </servercmd>
17 <connect>
18 HTTP/1.1 200 Mighty fine indeed\r
19 Server: the beast that eats naughty clients\r
20 \r
21 </connect>
22
23 <data>
24 HTTP/1.1 200 OK swsclose\r
25 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
26 Server: test-server/fake\r
27 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
28 ETag: "21025-dc7-39462498"\r
29 \r
30 </data>
31 <datacheck>
32 HTTP/1.1 200 Mighty fine indeed\r
33 Server: the beast that eats naughty clients\r
34 \r
35 HTTP/1.1 200 OK swsclose\r
36 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
37 Server: test-server/fake\r
38 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
39 ETag: "21025-dc7-39462498"\r
40 \r
41 header length is ........: 245
42 header length should be..: 245
43 </datacheck>
44 </reply>
45
46 # Client-side
47 <client>
48 <server>
49 http
50 http-proxy
51 </server>
52 # tool is what to use instead of 'curl'
53 <tool>
54 lib1509
55 </tool>
56
57  <name>
58 simple multi http:// through proxytunnel with authentication info
59  </name>
60  <command>
61 http://the.old.moo.1509:%HTTPPORT/1509 %HOSTIP:%PROXYPORT
62 </command>
63 <file name="log/test1509.txt">
64 foo
65    bar
66 bar
67    foo
68 moo
69 </file>
70 </client>
71
72 # Verify data after the test has been "shot"
73 <verify>
74 <proxy>
75 CONNECT the.old.moo.1509:%HTTPPORT HTTP/1.1\r
76 Host: the.old.moo.1509:%HTTPPORT\r
77 \r
78 </proxy>
79 <protocol>
80 GET /1509 HTTP/1.1\r
81 Host: the.old.moo.1509:%HTTPPORT\r
82 Accept: */*\r
83 \r
84 [DISCONNECT]
85 </protocol>
86 </verify>
87 </testcase>