tizen 2.3.1 release
[external/curl.git] / tests / data / test68
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 HTTP NTLM auth
7 </keywords>
8 </info>
9 # Server-side
10 <reply>
11
12 # This is supposed to be returned when the server gets a first
13 # Authorization: NTLM line passed-in from the client
14 <data1001>
15 HTTP/1.1 401 Now gimme that second request of crap\r
16 Server: Microsoft-IIS/5.0\r
17 Content-Length: 34\r
18 Content-Type: text/html; charset=iso-8859-1\r
19 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
20 \r
21 This is not the real page either!
22 </data1001>
23
24 # This is supposed to be returned when the server gets the second
25 # Authorization: NTLM line passed-in from the client
26 <data1002>
27 HTTP/1.1 401 You give me wrong password\r
28 Server: Microsoft-IIS/5.0\r
29 WWW-Authenticate: NTLM\r
30 Content-Length: 46\r
31 Content-Type: text/html; charset=iso-8859-1\r
32 \r
33 Wrong password dude. Get it fixed and return.
34 </data1002>
35
36 <datacheck>
37 HTTP/1.1 401 Now gimme that second request of crap\r
38 Server: Microsoft-IIS/5.0\r
39 Content-Length: 34\r
40 Content-Type: text/html; charset=iso-8859-1\r
41 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
42 \r
43 HTTP/1.1 401 You give me wrong password\r
44 Server: Microsoft-IIS/5.0\r
45 WWW-Authenticate: NTLM\r
46 Content-Length: 46\r
47 Content-Type: text/html; charset=iso-8859-1\r
48 \r
49 Wrong password dude. Get it fixed and return.
50 </datacheck>
51
52 </reply>
53
54 # Client-side
55 <client>
56 <features>
57 NTLM
58 !SSPI
59 debug
60 </features>
61 <server>
62 http
63 </server>
64  <name>
65 HTTP with NTLM authorization and wrong password
66  </name>
67  <setenv>
68 # we force our own host name, in order to make the test machine independent
69 CURL_GETHOSTNAME=curlhost
70 # we try to use the LD_PRELOAD hack, if not a debug build
71 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
72  </setenv>
73  <command>
74 http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
75 </command>
76 <precheck>
77 chkhostname curlhost
78 </precheck>
79 </client>
80
81 # Verify data after the test has been "shot"
82 <verify>
83 <strip>
84 ^User-Agent:.*
85 </strip>
86 <protocol>
87 GET /68 HTTP/1.1\r
88 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
89 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\r
90 Host: %HOSTIP:%HTTPPORT\r
91 Accept: */*\r
92 \r
93 GET /68 HTTP/1.1\r
94 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==\r
95 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\r
96 Host: %HOSTIP:%HTTPPORT\r
97 Accept: */*\r
98 \r
99 </protocol>
100 </verify>
101 </testcase>