xref: /curl/tests/data/test503 (revision d5e83eb7)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP CONNECT
7HTTP proxy
8HTTP proxy Basic auth
9proxytunnel
10multi
11</keywords>
12</info>
13
14# Server-side
15<reply>
16<servercmd>
17connection-monitor
18</servercmd>
19<connect>
20HTTP/1.1 200 Mighty fine indeed
21
22</connect>
23<data>
24HTTP/1.1 200 OK swsclose
25Date: Tue, 09 Nov 2010 14:49:00 GMT
26Server: test-server/fake
27Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
28ETag: "21025-dc7-39462498"
29
30</data>
31<datacheck>
32HTTP/1.1 200 Mighty fine indeed
33
34HTTP/1.1 200 OK swsclose
35Date: Tue, 09 Nov 2010 14:49:00 GMT
36Server: test-server/fake
37Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
38ETag: "21025-dc7-39462498"
39
40</datacheck>
41</reply>
42
43# Client-side
44<client>
45<server>
46http
47http-proxy
48</server>
49# tool is what to use instead of 'curl'
50<tool>
51lib%TESTNUMBER
52</tool>
53<features>
54proxy
55</features>
56<name>
57simple multi http:// through proxytunnel with authentication info
58</name>
59<command>
60http://machine.%TESTNUMBER:%HTTPPORT/%TESTNUMBER %HOSTIP:%PROXYPORT
61</command>
62<file name="%LOGDIR/test%TESTNUMBER.txt">
63foo
64   bar
65bar
66   foo
67moo
68</file>
69</client>
70
71# Verify data after the test has been "shot"
72<verify>
73<proxy>
74CONNECT machine.%TESTNUMBER:%HTTPPORT HTTP/1.1
75Host: machine.%TESTNUMBER:%HTTPPORT
76Proxy-Authorization: Basic dGVzdCUyMDppbmclNDE=
77Proxy-Connection: Keep-Alive
78
79[DISCONNECT]
80</proxy>
81<protocol>
82GET /%TESTNUMBER HTTP/1.1
83Host: machine.%TESTNUMBER:%HTTPPORT
84Authorization: Basic dGVzdDppbmc=
85Accept: */*
86
87[DISCONNECT]
88</protocol>
89</verify>
90</testcase>
91