quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

test2057 (1989B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP Negotiate auth (stub ntlm)
      7 </keywords>
      8 </info>
      9 # Server-side
     10 <reply>
     11 <!-- First request, expect 401 (ntlm challenge) -->
     12 <data1>
     13 HTTP/1.1 401 Authorization Required
     14 Server: Microsoft-IIS/7.0
     15 Content-Type: text/html; charset=iso-8859-1
     16 WWW-Authenticate: Negotiate Qw==
     17 Content-Length: 19
     18 
     19 Still not yet sir!
     20 </data1>
     21 <!-- Second request, expect success  -->
     22 <data2>
     23 HTTP/1.1 200 Things are fine in server land
     24 Server: Microsoft-IIS/7.0
     25 Content-Type: text/html; charset=iso-8859-1
     26 WWW-Authenticate: Negotiate RA==
     27 Content-Length: 15
     28 
     29 Nice auth sir!
     30 </data2>
     31 <datacheck>
     32 HTTP/1.1 401 Authorization Required
     33 Server: Microsoft-IIS/7.0
     34 Content-Type: text/html; charset=iso-8859-1
     35 WWW-Authenticate: Negotiate Qw==
     36 Content-Length: 19
     37 
     38 HTTP/1.1 200 Things are fine in server land
     39 Server: Microsoft-IIS/7.0
     40 Content-Type: text/html; charset=iso-8859-1
     41 WWW-Authenticate: Negotiate RA==
     42 Content-Length: 15
     43 
     44 Nice auth sir!
     45 </datacheck>
     46 </reply>
     47 
     48 # Client-side
     49 <client>
     50 <server>
     51 http
     52 </server>
     53 <name>
     54 HTTP Negotiate authentication (stub NTLM)
     55 </name>
     56 <features>
     57 GSS-API
     58 Debug
     59 </features>
     60 <setenv>
     61 CURL_STUB_GSS_CREDS="NTLM_Alice"
     62 </setenv>
     63 <command>
     64 --negotiate http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     65 </command>
     66 </client>
     67 
     68 # Verify data after the test has been "shot"
     69 <verify>
     70 <protocol>
     71 GET /%TESTNUMBER HTTP/1.1
     72 Host: %HOSTIP:%HTTPPORT
     73 Authorization: Negotiate %b64["NTLM_Alice":HTTP@127.0.0.1:2:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]b64%
     74 User-Agent: curl/%VERSION
     75 Accept: */*
     76 
     77 GET /%TESTNUMBER HTTP/1.1
     78 Host: %HOSTIP:%HTTPPORT
     79 Authorization: Negotiate %b64["NTLM_Alice":HTTP@127.0.0.1:3:AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA]b64%
     80 User-Agent: curl/%VERSION
     81 Accept: */*
     82 
     83 </protocol>
     84 </verify>
     85 </testcase>