Debian Codegraph @

curl/tests/data/test68

raw
1 <info>
2 <keywords>
3 HTTP
4 HTTP GET
5 HTTP NTLM auth
6 </keywords>
7 </info>
8 # Server-side
9 <reply>
10
11 # This is supposed to be returned when the server gets a first
12 # Authorization: NTLM line passed-in from the client
13 <data1001>
14 HTTP/1.1 401 Now gimme that second request of crap
15 Server: Microsoft-IIS/5.0
16 Content-Length: 34
17 Content-Type: text/html; charset=iso-8859-1
18 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
19
20 This is not the real page either!
21 </data1001>
22
23 # This is supposed to be returned when the server gets the second
24 # Authorization: NTLM line passed-in from the client
25 <data1002>
26 HTTP/1.1 401 You give me wrong password
27 Server: Microsoft-IIS/5.0
28 WWW-Authenticate: NTLM
29 Content-Length: 46
30 Content-Type: text/html; charset=iso-8859-1
31
32 Wrong password dude. Get it fixed and return.
33 </data1002>
34
35 <datacheck>
36 HTTP/1.1 401 Now gimme that second request of crap
37 Server: Microsoft-IIS/5.0
38 Content-Length: 34
39 Content-Type: text/html; charset=iso-8859-1
40 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
41
42 HTTP/1.1 401 You give me wrong password
43 Server: Microsoft-IIS/5.0
44 WWW-Authenticate: NTLM
45 Content-Length: 46
46 Content-Type: text/html; charset=iso-8859-1
47
48 Wrong password dude. Get it fixed and return.
49 </datacheck>
50
51 </reply>
52
53 # Client-side
54 <client>
55 <features>
56 NTLM
57 </features>
58 <server>
59 http
60 </server>
61 <name>
62 HTTP with NTLM authorization and wrong password
63 </name>
64 <command>
65 http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
66 </command>
67 </client>
68
69 # Verify data after the test has been "shot"
70 <verify>
71 <strip>
72 ^User-Agent:.*
73 </strip>
74 <protocol>
75 GET /68 HTTP/1.1
76 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
77 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
78 Host: 127.0.0.1:%HTTPPORT
79 Accept: */*
80
81 GET /68 HTTP/1.1
82 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145
83 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
84 Host: 127.0.0.1:%HTTPPORT
85 Accept: */*
86
87 </protocol>
88 </verify>