quickjs-tart

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

test552 (3009B)


      1 <testcase>
      2 <info>
      3 # this test is meant to be exactly like 551 but is based on the debug code
      4 # submitted in bug report #1850730, which sends >64K data and we verify the
      5 # ioctl rewind callback getting used
      6 
      7 <keywords>
      8 HTTP
      9 HTTP POST
     10 POST callback
     11 HTTP proxy
     12 HTTP proxy Digest auth
     13 </keywords>
     14 </info>
     15 # Server-side
     16 <reply>
     17 
     18 # as a bonus, ww use an excessive nonce length
     19 <data>
     20 HTTP/1.1 407 Authorization Required swsclose
     21 Server: Apache/1.3.27 (Darwin) PHP/4.1.2
     22 Proxy-Authenticate: Digest realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
     23 Content-Type: text/html; charset=iso-8859-1
     24 Connection: close
     25 
     26 This is not the real page
     27 </data>
     28 
     29 # This is supposed to be returned when the server gets the Digest
     30 # Authorization: line passed-in from the client
     31 <data1000>
     32 HTTP/1.1 200 Things are fine in proxy land swsclose
     33 Server: Microsoft-IIS/5.0
     34 Content-Type: text/html; charset=iso-8859-1
     35 Content-Length: 42
     36 
     37 Contents of that page you requested, sir.
     38 </data1000>
     39 
     40 <datacheck>
     41 APPLICATION received a CURLIOCMD_RESTARTREAD request
     42 APPLICATION ** REWINDING! **
     43 Contents of that page you requested, sir.
     44 </datacheck>
     45 </reply>
     46 
     47 # Client-side
     48 <client>
     49 <server>
     50 http
     51 </server>
     52 # tool to use
     53 <tool>
     54 lib%TESTNUMBER
     55 </tool>
     56 <features>
     57 !SSPI
     58 crypto
     59 proxy
     60 digest
     61 </features>
     62 <name>
     63 HTTP proxy auth Digest with 70K POST data from read callback
     64 </name>
     65 <command>
     66 http://test.remote.example.com/path/%TESTNUMBER http://s1lly:pers0n@%HOSTIP:%HTTPPORT/
     67 </command>
     68 </client>
     69 
     70 # Verify data after the test has been "shot"
     71 <verify>
     72 <protocol nonewline="yes">
     73 POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
     74 Host: test.remote.example.com
     75 Accept: */*
     76 Proxy-Connection: Keep-Alive
     77 Content-Length: 70000
     78 Content-Type: application/x-www-form-urlencoded
     79 
     80 %repeat[7000 x test data%00]%POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
     81 Host: test.remote.example.com
     82 Proxy-Authorization: Digest username="s1lly", realm="something fun to read", nonce="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", uri="/path/%TESTNUMBER", response="be7aedc47d821b6d847c445ded782c43"
     83 Accept: */*
     84 Proxy-Connection: Keep-Alive
     85 Content-Length: 70000
     86 Content-Type: application/x-www-form-urlencoded
     87 
     88 %repeat[7000 x test data%00]%
     89 </protocol>
     90 </verify>
     91 </testcase>