• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP HEAD
6-G
7</keywords>
8</info>
9#
10# Server-side
11<reply>
12<servercmd>
13connection-monitor
14</servercmd>
15<data>
16HTTP/1.1 200 OK
17Date: Thu, 09 Nov 2010 14:49:00 GMT
18Content-Length: 10
19
20contents1
21</data>
22<data1>
23HTTP/1.1 200 OK
24Date: Thu, 09 Nov 2010 14:49:00 GMT
25Content-Length: 10
26
27contents2
28</data1>
29</reply>
30
31#
32# Client-side
33<client>
34<server>
35http
36</server>
37 <name>
38HTTP connection re-use with different credentials
39 </name>
40 <command>
41http://%HOSTIP:%HTTPPORT/1134 -u user1:password1 --next http://%HOSTIP:%HTTPPORT/11340001 -u 2user:password2
42</command>
43</client>
44
45#
46# Verify data after the test has been "shot"
47<verify>
48<strip>
49^User-Agent:.*
50</strip>
51<protocol>
52GET /1134 HTTP/1.1
53Host: %HOSTIP:%HTTPPORT
54Authorization: Basic dXNlcjE6cGFzc3dvcmQx
55Accept: */*
56
57GET /11340001 HTTP/1.1
58Host: %HOSTIP:%HTTPPORT
59Authorization: Basic MnVzZXI6cGFzc3dvcmQy
60Accept: */*
61
62[DISCONNECT]
63</protocol>
64</verify>
65</testcase>
66