9d9a9cc1c2546076b7b5510d2a847f4d252cdbfd
[platform/upstream/curl.git] / tests / data / test16
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 HTTP proxy Basic auth
8 </keywords>
9 </info>
10
11 # Server-side
12 <reply>
13 <data>
14 HTTP/1.1 200 OK\r
15 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
16 Server: test-server/fake\r
17 Content-Type: text/html\r
18 Funny-head: yesyes\r
19 Content-Length: 22\r
20 \r
21 the content goes here
22 </data>
23 </reply>
24
25 # Client-side
26 <client>
27 <server>
28 http
29 </server>
30  <name>
31 HTTP 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>
44 GET http://we.want.that.site.com/16 HTTP/1.1\r
45 Host: we.want.that.site.com\r
46 Proxy-Authorization: Basic ZmFrZUB1c2VyOmxvb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29vb29uZw==\r
47 Accept: */*\r
48 \r
49 </protocol>
50 </verify>
51 </testcase>