1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7HTTP proxy Basic auth
8</keywords>
9</info>
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK swsclose
14Date: Thu, 09 Nov 2010 14:49:00 GMT
15Content-Type: text/html
16Content-Length: 26
17
18the content would go here
19</data>
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27 <name>
28HTTP with proxy authorization set in environment
29 </name>
30<setenv>
31http_proxy=http://fake:user@%HOSTIP:%HTTPPORT/
32</setenv>
33 <command>
34http://we.want.that.site.com/63
35</command>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<strip>
41^User-Agent:.*
42</strip>
43<protocol>
44GET http://we.want.that.site.com/63 HTTP/1.1
45Proxy-Authorization: Basic ZmFrZTp1c2Vy
46Host: we.want.that.site.com
47Accept: */*
48Proxy-Connection: Keep-Alive
49
50</protocol>
51</verify>
52</testcase>
53