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