Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test176
blobacdcc573411508057aad7af53919b543553468f2
1 <testcase>
2 # Server-side
3 <reply>
4 # the first request has NTLM type-1 included, and then the 1001 is returned
5 <data1001>
6 HTTP/1.1 200 beng swsclose swsbounce
7 Server: Microsoft-IIS/6.0
8 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
9 Content-Type: text/html; charset=iso-8859-1
11 </data1001>
13 # the second request should be auth-less and then this is returned.
14 <data>
15 HTTP/1.1 200 moo swsclose
16 Server: Microsoft-IIS/6.0
17 Content-Type: text/html; charset=iso-8859-1
18 Content-Length: 16
20 content for you
21 </data>
23 <datacheck>
24 HTTP/1.1 200 beng swsclose swsbounce
25 Server: Microsoft-IIS/6.0
26 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
27 Content-Type: text/html; charset=iso-8859-1
29 HTTP/1.1 200 moo swsclose
30 Server: Microsoft-IIS/6.0
31 Content-Type: text/html; charset=iso-8859-1
32 Content-Length: 16
34 content for you
35 </datacheck>
37 </reply>
39 # Client-side
40 <client>
41 <features>
42 NTLM
43 </features>
44 <server>
45 http
46 </server>
47  <name>
48 HTTP POST --ntlm to server not requiring any auth at all
49  </name>
50  <command>
51 http://%HOSTIP:%HTTPPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
52 </command>
53 </client>
55 # Verify data after the test has been "shot"
56 <verify>
57 <strip>
58 ^User-Agent:.*
59 </strip>
60 <protocol nonewline="yes">
61 POST /176 HTTP/1.1
62 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
63 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
64 Host: %HOSTIP:%HTTPPORT
65 Accept: */*
66 Content-Length: 0
67 Content-Type: application/x-www-form-urlencoded
69 POST /176 HTTP/1.1
70 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
71 Host: %HOSTIP:%HTTPPORT
72 Accept: */*
73 Content-Length: 11
74 Content-Type: application/x-www-form-urlencoded
76 junkelijunk
77 </protocol>
78 </verify>
79 </testcase>