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