• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7HTTP proxy Basic auth
8</keywords>
9</info>
10
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Thu, 09 Nov 2010 14:49:00 GMT
16Server: test-server/fake
17Content-Type: text/html
18Funny-head: yesyes
19Content-Length: 22
20
21the content goes here
22</data>
23</reply>
24
25# Client-side
26<client>
27<server>
28http
29</server>
30 <name>
31HTTP with proxy authorization
32 </name>
33 <command>
34 -U fake@user:loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong -x %HOSTIP:%HTTPPORT http://we.want.that.site.com/16
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/16 HTTP/1.1
45Host: we.want.that.site.com
46Proxy-Authorization: Basic ZmFrZUB1c2VyOmxvb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29uZw==
47Accept: */*
48Proxy-Connection: Keep-Alive
49
50</protocol>
51</verify>
52</testcase>
53