Update tag value for tizen 2.0 build
[external/curl.git] / tests / data / test155
1 <testcase>
2 # Server-side
3 <reply>
4 <servercmd>
5 auth_required
6 </servercmd>
7 <data>
8 HTTP/1.1 401 NTLM Authorization Required swsclose\r
9 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
10 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
11 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
12 WWW-Authenticate: NTLM\r
13 Content-Type: text/html; charset=iso-8859-1\r
14 Connection: close\r
15 \r
16 moo
17 </data>
18
19 # This is supposed to be returned when the server gets a first
20 # Authorization: NTLM line passed-in from the client
21 <data1001>
22 HTTP/1.1 401 Type-1 received, send back type-2\r
23 Server: Microsoft-IIS/5.0\r
24 Content-Length: 34\r
25 Content-Type: text/html; charset=iso-8859-1\r
26 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
27 \r
28 This is not the real page either!
29 </data1001>
30
31 # This is supposed to be returned when the server gets the second
32 # Authorization: NTLM line passed-in from the client
33 <data1002>
34 HTTP/1.1 200 Type-3 Recevied and all Things are fine swsclose\r
35 Server: Microsoft-IIS/5.0\r
36 Content-Type: text/html; charset=iso-8859-1\r
37 Content-Length: 32\r
38 \r
39 Finally, this is the real page!
40 </data1002>
41
42 <datacheck>
43 HTTP/1.1 401 NTLM Authorization Required swsclose\r
44 Server: Apache/1.3.27 (Darwin) PHP/4.1.2\r
45 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"\r
46 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts"\r
47 WWW-Authenticate: NTLM\r
48 Content-Type: text/html; charset=iso-8859-1\r
49 Connection: close\r
50 \r
51 HTTP/1.1 401 Type-1 received, send back type-2\r
52 Server: Microsoft-IIS/5.0\r
53 Content-Length: 34\r
54 Content-Type: text/html; charset=iso-8859-1\r
55 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==\r
56 \r
57 HTTP/1.1 200 Type-3 Recevied and all Things are fine swsclose\r
58 Server: Microsoft-IIS/5.0\r
59 Content-Type: text/html; charset=iso-8859-1\r
60 Content-Length: 32\r
61 \r
62 Finally, this is the real page!
63 </datacheck>
64
65 </reply>
66
67 # Client-side
68 <client>
69 <features>
70 NTLM
71 </features>
72 <server>
73 http
74 </server>
75  <name>
76 HTTP PUT with --anyauth authorization (picking NTLM)
77  </name>
78  <setenv>
79 # we force our own host name, in order to make the test machine independent
80 CURL_GETHOSTNAME=curlhost
81 # we try to use the LD_PRELOAD hack, if not a debug build
82 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
83  </setenv>
84  <command>
85 http://%HOSTIP:%HTTPPORT/155 -T log/put155 -u testuser:testpass --anyauth
86 </command>
87 <precheck>
88 chkhostname curlhost
89 </precheck>
90 <file name="log/put155">
91 This is data we upload with PUT
92 a second line
93 line three
94 four is the number of lines
95 </file>
96 </client>
97
98 # Verify data after the test has been "shot"
99 <verify>
100 <strip>
101 ^User-Agent:.*
102 </strip>
103 <protocol>
104 PUT /155 HTTP/1.1\r
105 Host: %HOSTIP:%HTTPPORT\r
106 Accept: */*\r
107 Content-Length: 85\r
108 Expect: 100-continue\r
109 \r
110 PUT /155 HTTP/1.1\r
111 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
112 Host: %HOSTIP:%HTTPPORT\r
113 Accept: */*\r
114 Content-Length: 0\r
115 Expect: 100-continue\r
116 \r
117 PUT /155 HTTP/1.1\r
118 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAABoKBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyY3VybGhvc3Q=\r
119 User-Agent: curl/7.10.5 (i686-pc-linux-gnu) libcurl/7.10.5 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
120 Host: %HOSTIP:%HTTPPORT\r
121 Accept: */*\r
122 Content-Length: 85\r
123 Expect: 100-continue\r
124 \r
125 This is data we upload with PUT
126 a second line
127 line three
128 four is the number of lines
129 </protocol>
130 </verify>
131 </testcase>