Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test540
blob8462db11bf50c2699c14d6b2474cbe061205eace
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP proxy
7 HTTP proxy Digest auth
8 multi
9 </keywords>
10 </info>
12 # Server-side
13 <reply>
15 # this is returned first since we get no proxy-auth
16 <data>
17 HTTP/1.1 407 Authorization Required to proxy me my dear
18 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
19 Content-Length: 33
21 And you should ignore this data.
22 </data>
24 # then this is returned when we get proxy-auth
25 <data1000>
26 HTTP/1.1 200 OK
27 Content-Length: 21
28 Server: no
30 Nice proxy auth sir!
31 </data1000>
33 <datacheck>
34 HTTP/1.1 407 Authorization Required to proxy me my dear
35 Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
36 Content-Length: 33
38 HTTP/1.1 200 OK
39 Content-Length: 21
40 Server: no
42 Nice proxy auth sir!
43 HTTP/1.1 200 OK
44 Content-Length: 21
45 Server: no
47 Nice proxy auth sir!
48 </datacheck>
49 </reply>
51 # Client-side
52 <client>
53 <server>
54 http
55 </server>
56 # tool is what to use instead of 'curl'
57 <tool>
58 lib540
59 </tool>
60 <features>
61 crypto
62 </features>
63  <name>
64 HTTP proxy auth Digest multi API re-using connection
65  </name>
66  <command>
67 http://test.remote.server.com/path/540 http://%HOSTIP:%HTTPPORT silly:person custom.set.host.name
68 </command>
69 </client>
71 # Verify data after the test has been "shot"
72 <verify>
73 <strip>
74 ^User-Agent: curl/.*
75 </strip>
76 <protocol>
77 GET http://test.remote.server.com/path/540 HTTP/1.1
78 Pragma: no-cache
79 Accept: */*
80 Proxy-Connection: Keep-Alive
81 Host: custom.set.host.name
83 GET http://test.remote.server.com/path/540 HTTP/1.1
84 Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="/path/540", response="ca507dcf189196b6a5374d3233042261"
85 Pragma: no-cache
86 Accept: */*
87 Proxy-Connection: Keep-Alive
88 Host: custom.set.host.name
90 GET http://test.remote.server.com/path/540 HTTP/1.1
91 Proxy-Authorization: Digest username="silly", realm="weirdorealm", nonce="12345", uri="/path/540", response="ca507dcf189196b6a5374d3233042261"
92 Pragma: no-cache
93 Accept: */*
94 Proxy-Connection: Keep-Alive
95 Host: custom.set.host.name
97 </protocol>
98 </verify>
99 </testcase>