Debian Codegraph @

curl/tests/data/test176

raw
1 # Server-side
2 <reply>
3 # the first request has NTLM type-1 included, and then the 1001 is returned
4 <data1001>
5 HTTP/1.1 200 beng swsclose swsbounce
6 Server: Microsoft-IIS/6.0
7 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
8 Content-Type: text/html; charset=iso-8859-1
9
10 </data1001>
11
12 # the second request should be auth-less and then this is returned.
13 <data>
14 HTTP/1.1 200 moo swsclose
15 Server: Microsoft-IIS/6.0
16 Content-Type: text/html; charset=iso-8859-1
17
18 content for you
19 </data>
20
21 <datacheck>
22 HTTP/1.1 200 beng swsclose swsbounce
23 Server: Microsoft-IIS/6.0
24 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
25 Content-Type: text/html; charset=iso-8859-1
26
27 HTTP/1.1 200 moo swsclose
28 Server: Microsoft-IIS/6.0
29 Content-Type: text/html; charset=iso-8859-1
30
31 content for you
32 </datacheck>
33
34 </reply>
35
36 # Client-side
37 <client>
38 <features>
39 NTLM
40 </features>
41 <server>
42 http
43 </server>
44 <name>
45 HTTP POST --ntlm to server not requiring any auth at all
46 </name>
47 <command>
48 http://%HOSTIP:%HTTPPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
49 </command>
50 </client>
51
52 # Verify data after the test has been "shot"
53 <verify>
54 <strip>
55 ^User-Agent:.*
56 </strip>
57 <protocol nonewline=yes>
58 POST /176 HTTP/1.1
59 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=
60 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
61 Host: 127.0.0.1:%HTTPPORT
62 Accept: */*
63 Content-Length: 0
64 Content-Type: application/x-www-form-urlencoded
65
66 POST /176 HTTP/1.1
67 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
68 Host: 127.0.0.1:%HTTPPORT
69 Accept: */*
70 Content-Length: 11
71 Content-Type: application/x-www-form-urlencoded
72
73 junkelijunk
74 </protocol>
75 </verify>