]> icculus.org git repositories - icculus/iodoom3.git/blob - neo/curl/tests/data/test81
hello world
[icculus/iodoom3.git] / neo / curl / tests / data / test81
1 # Server-side
2 <reply>
3
4 # This is supposed to be returned when the server gets a first
5 # Authorization: NTLM line passed-in from the client
6 <data1001>
7 HTTP/1.1 407 Now gimme that second request of crap
8 Server: Microsoft-IIS/5.0
9 Content-Type: text/html; charset=iso-8859-1
10 Content-Length: 34
11 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
12
13 This is not the real page either!
14 </data1001>
15
16 # This is supposed to be returned when the server gets the second
17 # Authorization: NTLM line passed-in from the client
18 <data1002>
19 HTTP/1.1 200 Things are fine in server land swsclose
20 Server: Microsoft-IIS/5.0
21 Content-Type: text/html; charset=iso-8859-1
22
23 Finally, this is the real page!
24 </data1002>
25
26 <datacheck>
27 HTTP/1.1 407 Now gimme that second request of crap
28 Server: Microsoft-IIS/5.0
29 Content-Type: text/html; charset=iso-8859-1
30 Content-Length: 34
31 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
32
33 HTTP/1.1 200 Things are fine in server land swsclose
34 Server: Microsoft-IIS/5.0
35 Content-Type: text/html; charset=iso-8859-1
36
37 Finally, this is the real page!
38 </datacheck>
39
40 </reply>
41
42 # Client-side
43 <client>
44 # NTLM only works if SSL-support is present
45 <features>
46 SSL
47 </features>
48 <server>
49 http
50 </server>
51  <name>
52 HTTP with proxy using NTLM authorization
53  </name>
54  <command>
55 http://%HOSTIP:%HOSTPORT/81 --proxy-user testuser:testpass -x http://%HOSTIP:%HOSTPORT --proxy-ntlm
56 </command>
57 </test>
58
59 # Verify data after the test has been "shot"
60 <verify>
61 <strip>
62 ^User-Agent:.*
63 </strip>
64 <protocol>
65 GET http://127.0.0.1:8999/81 HTTP/1.1
66 Proxy-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
67 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
68 Host: 127.0.0.1:8999
69 Pragma: no-cache
70 Accept: */*
71
72 GET http://127.0.0.1:8999/81 HTTP/1.1
73 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAAAAAAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAABgAAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FB
74 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
75 Host: 127.0.0.1:8999
76 Pragma: no-cache
77 Accept: */*
78
79 </protocol>
80 </verify>