Debian Codegraph @

curl/tests/data/test82

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP proxy Basic auth
6 HTTP proxy NTLM auth
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11
12 <data>
13 HTTP/1.1 407 We only deal with NTLM my friend
14 Server: Microsoft-IIS/5.0
15 Content-Type: text/html; charset=iso-8859-1
16 Content-Length: 34
17 Proxy-Authenticate: NTLM
18
19 This is not the real page either!
20 </data>
21
22 </reply>
23
24 # Client-side
25 <client>
26 <features>
27 </features>
28 <server>
29 http
30 </server>
31 <name>
32 HTTP with proxy requiring NTLM, but we send Basic
33 </name>
34 <command>
35 http://%HOSTIP:%HTTPPORT/82 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT
36 </command>
37 </client>
38
39 # Verify data after the test has been "shot"
40 <verify>
41 <strip>
42 ^User-Agent:.*
43 </strip>
44 <protocol>
45 GET http://127.0.0.1:%HTTPPORT/82 HTTP/1.1
46 Proxy-Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
47 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
48 Host: 127.0.0.1:%HTTPPORT
49 Pragma: no-cache
50 Accept: */*
51 Proxy-Connection: Keep-Alive
52
53 </protocol>
54 </verify>