A minor "syntax error" in numerous test files corrected
[platform/upstream/curl.git] / tests / data / test176
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\r
6 Server: Microsoft-IIS/6.0\r
7 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
8 Content-Type: text/html; charset=iso-8859-1\r
9 \r
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\r
15 Server: Microsoft-IIS/6.0\r
16 Content-Type: text/html; charset=iso-8859-1\r
17 \r
18 content for you
19 </data>
20
21 <datacheck>
22 HTTP/1.1 200 beng swsclose swsbounce\r
23 Server: Microsoft-IIS/6.0\r
24 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
25 Content-Type: text/html; charset=iso-8859-1\r
26 \r
27 HTTP/1.1 200 moo swsclose\r
28 Server: Microsoft-IIS/6.0\r
29 Content-Type: text/html; charset=iso-8859-1\r
30 \r
31 content for you
32 </datacheck>
33
34 </reply>
35
36 # Client-side
37 <client>
38 # require SSL since we need that for NTLM
39 <features>
40 SSL
41 </features>
42 <server>
43 http
44 </server>
45  <name>
46 HTTP POST --ntlm to server not requiring any auth at all
47  </name>
48  <command>
49 http://%HOSTIP:%HTTPPORT/176 -u auser:apasswd --ntlm -d "junkelijunk"
50 </command>
51 </client>
52
53 # Verify data after the test has been "shot"
54 <verify>
55 <strip>
56 ^User-Agent:.*
57 </strip>
58 <protocol nonewline=yes>
59 POST /176 HTTP/1.1\r
60 Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
61 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\r
62 Host: 127.0.0.1:%HTTPPORT\r
63 Pragma: no-cache\r
64 Accept: */*\r
65 Content-Length: 0\r
66 Content-Type: application/x-www-form-urlencoded\r
67 \r
68 POST /176 HTTP/1.1\r
69 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\r
70 Host: 127.0.0.1:%HTTPPORT\r
71 Pragma: no-cache\r
72 Accept: */*\r
73 Content-Length: 11\r
74 Content-Type: application/x-www-form-urlencoded\r
75 \r
76 junkelijunk
77 </protocol>
78 </verify>