Debian Codegraph @

curl/tests/data/test63

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