quickjs-tart

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

test590 (2997B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP POST
      6 POST callback
      7 HTTP proxy
      8 HTTP proxy NTLM auth
      9 NTLM
     10 </keywords>
     11 </info>
     12 # Server-side
     13 <reply>
     14 
     15 <data>
     16 HTTP/1.1 407 Authorization Required swsclose
     17 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
     18 Proxy-Authenticate: Negotiate
     19 Proxy-Authenticate: NTLM
     20 Content-Type: text/html; charset=iso-8859-1
     21 Connection: close
     22 
     23 This is not the real page
     24 </data>
     25 
     26 # this is returned first since we get no proxy-auth
     27 <data1001>
     28 HTTP/1.1 407 Authorization Required to proxy me my dear
     29 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
     30 Content-Length: 34
     31 
     32 Hey you, authenticate or go away!
     33 </data1001>
     34 
     35 # This is supposed to be returned when the server gets the second
     36 # Authorization: NTLM line passed-in from the client
     37 <data1002>
     38 HTTP/1.1 200 Things are fine in proxy land swsclose
     39 Server: Microsoft-IIS/5.0
     40 Content-Type: text/html; charset=iso-8859-1
     41 Content-Length: 42
     42 
     43 Contents of that page you requested, sir.
     44 </data1002>
     45 
     46 <datacheck>
     47 HTTP/1.1 407 Authorization Required swsclose
     48 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
     49 Proxy-Authenticate: Negotiate
     50 Proxy-Authenticate: NTLM
     51 Content-Type: text/html; charset=iso-8859-1
     52 Connection: close
     53 
     54 HTTP/1.1 407 Authorization Required to proxy me my dear
     55 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
     56 Content-Length: 34
     57 
     58 HTTP/1.1 200 Things are fine in proxy land swsclose
     59 Server: Microsoft-IIS/5.0
     60 Content-Type: text/html; charset=iso-8859-1
     61 Content-Length: 42
     62 
     63 Contents of that page you requested, sir.
     64 </datacheck>
     65 </reply>
     66 
     67 # Client-side
     68 <client>
     69 <server>
     70 http
     71 </server>
     72 # tool to use
     73 <tool>
     74 lib%TESTNUMBER
     75 </tool>
     76 <features>
     77 NTLM
     78 SSL
     79 !SSPI
     80 proxy
     81 </features>
     82 <name>
     83 HTTP proxy offers Negotiate+NTLM, use only NTLM
     84 </name>
     85 <command>
     86 http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT
     87 </command>
     88 </client>
     89 
     90 # Verify data after the test has been "shot"
     91 <verify>
     92 
     93 <protocol>
     94 GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
     95 Host: test.remote.example.com
     96 Accept: */*
     97 Proxy-Connection: Keep-Alive
     98 
     99 GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
    100 Host: test.remote.example.com
    101 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
    102 Accept: */*
    103 Proxy-Connection: Keep-Alive
    104 
    105 GET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
    106 Host: test.remote.example.com
    107 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAALAAsAcgAAAAAAAAAAAAAAhoIBAAQt1KW5CgG4YdWWcfXyfXBz1ZMCzYp37xYjBiAizmw58O6eQS7yR66eqYGWeSwl9W1lV09SS1NUQVRJT04=
    108 Accept: */*
    109 Proxy-Connection: Keep-Alive
    110 
    111 </protocol>
    112 </verify>
    113 </testcase>