quickjs-tart

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

test150 (2460B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP NTLM auth
      7 NTLM
      8 </keywords>
      9 </info>
     10 
     11 <!-- Server-side -->
     12 <reply>
     13 
     14 <!-- no <data> in this test since we have NTLM from the start
     15 
     16 This is supposed to be returned when the server gets a first
     17 Authorization: NTLM line passed-in from the client -->
     18 
     19 <data1001>
     20 HTTP/1.1 401 Now gimme that second request of crap
     21 Server: Microsoft-IIS/5.0
     22 Content-Type: text/html; charset=iso-8859-1
     23 Content-Length: 34
     24 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
     25 
     26 This is not the real page either!
     27 </data1001>
     28 
     29 # This is supposed to be returned when the server gets the second
     30 # Authorization: NTLM line passed-in from the client
     31 <data1002>
     32 HTTP/1.1 200 Things are fine in server land swsclose
     33 Server: Microsoft-IIS/5.0
     34 Content-Type: text/html; charset=iso-8859-1
     35 Content-Length: 32
     36 
     37 Finally, this is the real page!
     38 </data1002>
     39 
     40 <datacheck>
     41 HTTP/1.1 401 Now gimme that second request of crap
     42 Server: Microsoft-IIS/5.0
     43 Content-Type: text/html; charset=iso-8859-1
     44 Content-Length: 34
     45 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
     46 
     47 HTTP/1.1 200 Things are fine in server land swsclose
     48 Server: Microsoft-IIS/5.0
     49 Content-Type: text/html; charset=iso-8859-1
     50 Content-Length: 32
     51 
     52 Finally, this is the real page!
     53 </datacheck>
     54 
     55 </reply>
     56 
     57 # Client-side
     58 <client>
     59 <features>
     60 NTLM
     61 SSL
     62 !SSPI
     63 </features>
     64 <server>
     65 http
     66 </server>
     67 <name>
     68 HTTP with NTLM authorization and --fail
     69 </name>
     70 <command>
     71 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --ntlm --fail
     72 </command>
     73 </client>
     74 
     75 # Verify data after the test has been "shot"
     76 <verify>
     77 <protocol>
     78 GET /%TESTNUMBER HTTP/1.1
     79 Host: %HOSTIP:%HTTPPORT
     80 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
     81 User-Agent: curl/%VERSION
     82 Accept: */*
     83 
     84 GET /%TESTNUMBER HTTP/1.1
     85 Host: %HOSTIP:%HTTPPORT
     86 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
     87 User-Agent: curl/%VERSION
     88 Accept: */*
     89 
     90 </protocol>
     91 </verify>
     92 </testcase>