• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6POST callback
7HTTP proxy
8HTTP proxy NTLM auth
9NTLM
10</keywords>
11</info>
12# Server-side
13<reply>
14
15<data>
16HTTP/1.1 401 Authorization Required
17Server: Apache/1.3.27 (Darwin) PHP/4.1.2
18WWW-Authenticate: Negotiate
19WWW-Authenticate: NTLM
20Content-Type: text/html; charset=iso-8859-1
21Content-Length: 26
22
23This is not the real page
24</data>
25
26# this is returned first since we get no proxy-auth
27<data1001>
28HTTP/1.1 401 Authorization Required
29WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
30Content-Length: 34
31
32Hey you, authenticate or go away!
33</data1001>
34
35# This is supposed to be returned when the server gets the second
36# Authorization: NTLM line passed-in from the client
37<data1002>
38HTTP/1.1 200 Things are fine
39Server: Microsoft-IIS/5.0
40Content-Type: text/html; charset=iso-8859-1
41Content-Length: 42
42
43Contents of that page you requested, sir.
44</data1002>
45
46# This is supposed to be returned when the server gets the second
47# request.
48<data10>
49HTTP/1.1 200 Things are fine
50Content-Type: yeah/maybe
51Content-Length: 42
52
53Contents of that second request. Differn.
54</data10>
55
56<datacheck>
57HTTP/1.1 401 Authorization Required
58Server: Apache/1.3.27 (Darwin) PHP/4.1.2
59WWW-Authenticate: Negotiate
60WWW-Authenticate: NTLM
61Content-Type: text/html; charset=iso-8859-1
62Content-Length: 26
63
64HTTP/1.1 401 Authorization Required
65WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
66Content-Length: 34
67
68HTTP/1.1 200 Things are fine
69Server: Microsoft-IIS/5.0
70Content-Type: text/html; charset=iso-8859-1
71Content-Length: 42
72
73Contents of that page you requested, sir.
74HTTP/1.1 200 Things are fine
75Content-Type: yeah/maybe
76Content-Length: 42
77
78Contents of that second request. Differn.
79</datacheck>
80</reply>
81
82# Client-side
83<client>
84<server>
85http
86</server>
87# tool to use
88<tool>
89lib%TESTNUMBER
90</tool>
91<features>
92NTLM
93!SSPI
94</features>
95<name>
96HTTP with NTLM twice, verify CURLINFO_HTTPAUTH_USED
97</name>
98<command>
99http://%HOSTIP:%HTTPPORT/path/mine http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER0010
100</command>
101</client>
102
103# Verify data after the test has been "shot"
104<verify>
105
106<protocol crlf="yes">
107GET /path/mine HTTP/1.1
108Host: %HOSTIP:%HTTPPORT
109Accept: */*
110
111GET /path/mine HTTP/1.1
112Host: %HOSTIP:%HTTPPORT
113Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
114Accept: */*
115
116GET /path/mine HTTP/1.1
117Host: %HOSTIP:%HTTPPORT
118Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAALAAsAcgAAAAAAAAAAAAAAhoIBAAQt1KW5CgG4YdWWcfXyfXBz1ZMCzYp37xYjBiAizmw58O6eQS7yR66eqYGWeSwl9W1lV09SS1NUQVRJT04=
119Accept: */*
120
121GET /path/6940010 HTTP/1.1
122Host: %HOSTIP:%HTTPPORT
123Accept: */*
124
125</protocol>
126</verify>
127</testcase>
128