Now the test servers and test cases can run on a custom port number. There's
[platform/upstream/curl.git] / tests / data / test91
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 401 Authorization Required swsclose\r
5 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
6 WWW-Authenticate: Magic-Negotiate\r
7 WWW-Authenticate: NTLM\r
8 WWW-Authenticate: Basic realm="daniel"\r
9 Content-Type: text/html; charset=iso-8859-1\r
10 Content-Length: 0\r
11 Connection: close\r
12 \r
13 </data>
14
15 # This is supposed to be returned when the server gets a first
16 # Authorization: NTLM line passed-in from the client
17 <data1001>
18 HTTP/1.1 401 Now gimme that second request of crap\r
19 Server: Microsoft-IIS/5.0\r
20 Content-Length: 34\r
21 Content-Type: text/html; charset=iso-8859-1\r
22 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
23 \r
24 This is not the real page either!
25 </data1001>
26
27 # This is supposed to be returned when the server gets the second
28 # Authorization: NTLM line passed-in from the client
29 <data1002>
30 HTTP/1.1 200 Things are fine in server land swsclose\r
31 Server: Microsoft-IIS/5.0\r
32 Content-Type: text/html; charset=iso-8859-1\r
33 \r
34 Finally, this is the real page!
35 </data1002>
36
37 <datacheck>
38 HTTP/1.1 401 Authorization Required swsclose\r
39 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
40 WWW-Authenticate: Magic-Negotiate\r
41 WWW-Authenticate: NTLM\r
42 WWW-Authenticate: Basic realm="daniel"\r
43 Content-Type: text/html; charset=iso-8859-1\r
44 Content-Length: 0\r
45 Connection: close\r
46 \r
47 HTTP/1.1 401 Now gimme that second request of crap\r
48 Server: Microsoft-IIS/5.0\r
49 Content-Length: 34\r
50 Content-Type: text/html; charset=iso-8859-1\r
51 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
52 \r
53 HTTP/1.1 200 Things are fine in server land swsclose\r
54 Server: Microsoft-IIS/5.0\r
55 Content-Type: text/html; charset=iso-8859-1\r
56 \r
57 Finally, this is the real page!
58 </datacheck>
59
60 </reply>
61
62 # Client-side
63 <client>
64 # NTLM only works if SSL-support is present
65 <features>
66 SSL
67 </features>
68 <server>
69 http
70 </server>
71  <name>
72 HTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
73  </name>
74  <command>
75 http://%HOSTIP:%HTTPPORT/91 --anyauth -u mydomain\\myself:secret
76 </command>
77 </test>
78
79 # Verify data after the test has been "shot"
80 <verify>
81 <strip>
82 ^User-Agent:.*
83 </strip>
84 <protocol>
85 GET /91 HTTP/1.1\r
86 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
87 Host: 127.0.0.1:%HTTPPORT\r
88 Pragma: no-cache\r
89 Accept: */*\r
90 \r
91 GET /91 HTTP/1.1\r
92 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
93 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
94 Host: 127.0.0.1:%HTTPPORT\r
95 Pragma: no-cache\r
96 Accept: */*\r
97 \r
98 GET /91 HTTP/1.1\r
99 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAE4AAAAYABgAZgAAAAgACABAAAAABgAGAEgAAAAAAAAATgAAAAAAAAB+AAAAAYIAAG15ZG9tYWlubXlzZWxmwjImlHmYemDYVmFrmRFoVn3jfoYDE+7QLmWXF7FJDlDNWSItJ+RylXJGAJdepH4C\r
100 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
101 Host: 127.0.0.1:%HTTPPORT\r
102 Pragma: no-cache\r
103 Accept: */*\r
104 \r
105 </protocol>
106 </verify>