• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: Thu, 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: Thu, 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>
51lib503
52</tool>
53
54 <name>
55simple multi http:// through proxytunnel with authentication info
56 </name>
57 <command>
58http://machine.503:%HTTPPORT/503 %HOSTIP:%PROXYPORT
59</command>
60<file name="log/test503.txt">
61foo
62   bar
63bar
64   foo
65moo
66</file>
67</client>
68
69# Verify data after the test has been "shot"
70<verify>
71<proxy>
72CONNECT machine.503:%HTTPPORT HTTP/1.1
73Host: machine.503:%HTTPPORT
74Proxy-Authorization: Basic dGVzdDppbmc=
75Proxy-Connection: Keep-Alive
76
77</proxy>
78<protocol>
79GET /503 HTTP/1.1
80Host: machine.503:%HTTPPORT
81Authorization: Basic dGVzdDppbmc=
82Accept: */*
83
84[DISCONNECT]
85</protocol>
86</verify>
87</testcase>
88