Revert "Update to 7.44.0"
[platform/upstream/curl.git] / tests / data / test68
index 9878778..92a915b 100644 (file)
@@ -1,3 +1,11 @@
+<testcase>
+<info>
+<keywords>
+HTTP
+HTTP GET
+HTTP NTLM auth
+</keywords>
+</info>
 # Server-side
 <reply>
 
@@ -45,9 +53,10 @@ Wrong password dude. Get it fixed and return.
 
 # Client-side
 <client>
-# NTLM only works if SSL-support is present
 <features>
-SSL
+NTLM
+!SSPI
+debug
 </features>
 <server>
 http
@@ -55,10 +64,19 @@ http
  <name>
 HTTP with NTLM authorization and wrong password
  </name>
+ <setenv>
+# we force our own host name, in order to make the test machine independent
+CURL_GETHOSTNAME=curlhost
+# we try to use the LD_PRELOAD hack, if not a debug build
+LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
+ </setenv>
  <command>
-http://%HOSTIP:%HOSTPORT/68 -u testuser:testpass --ntlm
+http://%HOSTIP:%HTTPPORT/68 -u testuser:testpass --ntlm
 </command>
-</test>
+<precheck>
+chkhostname curlhost
+</precheck>
+</client>
 
 # Verify data after the test has been "shot"
 <verify>
@@ -67,18 +85,17 @@ http://%HOSTIP:%HOSTPORT/68 -u testuser:testpass --ntlm
 </strip>
 <protocol>
 GET /68 HTTP/1.1\r
-Authorization: NTLM TlRMTVNTUAABAAAAAgIAAAAAAAAgAAAAAAAAACAAAAA=\r
+Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 \r
 GET /68 HTTP/1.1\r
-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEgAAAAYABgAYAAAAAAAAABAAAAACAAIAEAAAAAAAAAASAAAAAAAAAB4AAAAAYIAAHRlc3R1c2VyWmRDApEJkUyGOPS3DjvASModEeW/N/FBqYVyF4y6/y/7F6qmEQ7lXjXFF3tH1145\r
+Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAL9LNW5+nkyHZRmyFaL/LJ4xMjM0MjIzNGUCyhgQ9hw6eWAT13EbDa0BAQAAAAAAAACAPtXesZ0BMTIzNDIyMzQAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA==\r
 User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3\r
-Host: 127.0.0.1:8999\r
-Pragma: no-cache\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 \r
 </protocol>
 </verify>
+</testcase>