blob: fdc5a7631d7ca70b0ee523c156f8b1da9494552c [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Basic auth
7</keywords>
8</info>
9# Server-side
10<reply>
11<data>
12HTTP/1.1 200 OK swsclose
13Date: Thu, 09 Nov 2010 14:49:00 GMT
14Content-Type: text/html
15Content-Length: 26
16
17the content would go here
18</data>
19</reply>
20
21# Client-side
22<client>
23<server>
24http
25</server>
26 <name>
27HTTP connection re-use and different credentials
28 </name>
29
30<command>
31http://user1:foo1@%HOSTIP:%HTTPPORT/user1/%TESTNUMBER http://user2:foo2@%HOSTIP:%HTTPPORT/user2/%TESTNUMBER
32</command>
33<features>
34proxy
35</features>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<protocol>
41GET /user1/%TESTNUMBER HTTP/1.1
42Host: %HOSTIP:%HTTPPORT
43Authorization: Basic dXNlcjE6Zm9vMQ==
44User-Agent: curl/%VERSION
45Accept: */*
46
47GET /user2/%TESTNUMBER HTTP/1.1
48Host: %HOSTIP:%HTTPPORT
49Authorization: Basic dXNlcjI6Zm9vMg==
50User-Agent: curl/%VERSION
51Accept: */*
52
53</protocol>
54</verify>
55</testcase>