quickjs-tart

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

test1215 (2656B)


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