quickjs-tart

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

test1567 (917B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 URL API
      6 CURLOPT_CURLU
      7 CURLOPT_FOLLOWLOCATION
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 302 OK
     15 Content-Length: 6
     16 Location: /%TESTNUMBER0002
     17 
     18 -foo-
     19 </data>
     20 <data2>
     21 HTTP/1.1 200 OK
     22 Content-Length: 11
     23 
     24 redirected
     25 </data2>
     26 <datacheck>
     27 redirected
     28 redirected
     29 </datacheck>
     30 </reply>
     31 
     32 # Client-side
     33 <client>
     34 <server>
     35 http
     36 </server>
     37 # tool is what to use instead of 'curl'
     38 <tool>
     39 lib%TESTNUMBER
     40 </tool>
     41 
     42 <name>
     43 re-run redirected transfer without setting CURLU URL again
     44 </name>
     45 <command>
     46 http://%HOSTIP:%HTTPPORT/%TESTNUMBER
     47 </command>
     48 </client>
     49 
     50 <verify>
     51 <protocol>
     52 GET /%TESTNUMBER HTTP/1.1
     53 Host: %HOSTIP:%HTTPPORT
     54 Accept: */*
     55 
     56 GET /%TESTNUMBER0002 HTTP/1.1
     57 Host: %HOSTIP:%HTTPPORT
     58 Accept: */*
     59 
     60 GET /%TESTNUMBER HTTP/1.1
     61 Host: %HOSTIP:%HTTPPORT
     62 Accept: */*
     63 
     64 GET /%TESTNUMBER0002 HTTP/1.1
     65 Host: %HOSTIP:%HTTPPORT
     66 Accept: */*
     67 
     68 </protocol>
     69 </verify>
     70 </testcase>