Now the test servers and test cases can run on a custom port number. There's
[platform/upstream/curl.git] / tests / data / test89
1 # Server-side
2 <reply>
3
4 # no <data> in this test since we have NTLM from the start
5
6 # This is supposed to be returned when the server gets a first
7 # Authorization: NTLM line passed-in from the client
8 <data1001>
9 HTTP/1.1 401 Now gimme that second request of crap\r
10 Server: Microsoft-IIS/5.0\r
11 Content-Type: text/html; charset=iso-8859-1\r
12 Content-Length: 34\r
13 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
14 \r
15 This is not the real page either!
16 </data1001>
17
18 # This is supposed to be returned when the server gets the second
19 # Authorization: NTLM line passed-in from the client
20 <data1002>
21 HTTP/1.1 301 Things are fine in server land swsclose\r
22 Server: Microsoft-IIS/5.0\r
23 Connection: close\r
24 Location: /you/890010\r
25 \r
26 </data1002>
27
28 # This is the first reply after the redirection
29 <data1011>
30 HTTP/1.1 401 Now gimme that second round of crap\r
31 Server: Microsoft-IIS/5.0\r
32 Content-Type: text/html; charset=iso-8859-1\r
33 Content-Length: 34\r
34 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
35 \r
36 This is not the real page either!
37 </data1011>
38
39 # This is supposed to be returned when the server gets the second
40 # Authorization: NTLM line passed-in from the client
41 <data1012>
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 </data1012>
48
49 <datacheck>
50 HTTP/1.1 401 Now gimme that second request of crap\r
51 Server: Microsoft-IIS/5.0\r
52 Content-Type: text/html; charset=iso-8859-1\r
53 Content-Length: 34\r
54 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
55 \r
56 HTTP/1.1 301 Things are fine in server land swsclose\r
57 Server: Microsoft-IIS/5.0\r
58 Connection: close\r
59 Location: /you/890010\r
60 \r
61 HTTP/1.1 401 Now gimme that second round of crap\r
62 Server: Microsoft-IIS/5.0\r
63 Content-Type: text/html; charset=iso-8859-1\r
64 Content-Length: 34\r
65 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
66 \r
67 HTTP/1.1 200 Things are fine in server land swsclose\r
68 Server: Microsoft-IIS/5.0\r
69 Content-Type: text/html; charset=iso-8859-1\r
70 \r
71 Finally, this is the real page!
72 </datacheck>
73
74 </reply>
75
76 # Client-side
77 <client>
78 # NTLM only works if SSL-support is present
79 <features>
80 SSL
81 </features>
82 <server>
83 http
84 </server>
85  <name>
86 HTTP with NTLM and follow-location
87  </name>
88  <command>
89 http://%HOSTIP:%HTTPPORT/89 -u testuser:testpass --ntlm -L
90 </command>
91 </test>
92
93 # Verify data after the test has been "shot"
94 <verify>
95 <strip>
96 ^User-Agent:.*
97 </strip>
98 <protocol>
99 GET /89 HTTP/1.1\r
100 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
101 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
102 Host: 127.0.0.1:%HTTPPORT\r
103 Pragma: no-cache\r
104 Accept: */*\r
105 \r
106 GET /89 HTTP/1.1\r
107 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
108 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
109 Host: 127.0.0.1:%HTTPPORT\r
110 Pragma: no-cache\r
111 Accept: */*\r
112 \r
113 GET /you/890010 HTTP/1.1\r
114 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
115 User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
116 Host: 127.0.0.1:%HTTPPORT\r
117 Pragma: no-cache\r
118 Accept: */*\r
119 \r
120 GET /you/890010 HTTP/1.1\r
121 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
122 User-Agent: curl/7.10.8-pre1 (i686-pc-linux-gnu) libcurl/7.10.8-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3 GSS\r
123 Host: 127.0.0.1:%HTTPPORT\r
124 Pragma: no-cache\r
125 Accept: */*\r
126 \r
127 </protocol>
128 </verify>