quickjs-tart

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

test1579 (1527B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 CURLFOLLOW_OBEYCODE
      5 CURLOPT_FOLLOWLOCATION
      6 </keywords>
      7 </info>
      8 #
      9 # Server-side
     10 <reply>
     11 <data crlf="yes">
     12 HTTP/1.1 303 OK
     13 Date: Thu, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     16 ETag: "21025-dc7-39462498"
     17 Accept-Ranges: bytes
     18 Location: %TESTNUMBER0001
     19 Content-Length: 6
     20 Connection: close
     21 Content-Type: text/html
     22 Funny-head: yesyes
     23 
     24 -foo-
     25 </data>
     26 <data1 crlf="yes">
     27 HTTP/1.1 200 OK
     28 Content-Length: 6
     29 Connection: close
     30 Content-Type: text/html
     31 
     32 -bar-
     33 </data1>
     34 <datacheck crlf="yes">
     35 HTTP/1.1 303 OK
     36 Date: Thu, 09 Nov 2010 14:49:00 GMT
     37 Server: test-server/fake
     38 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     39 ETag: "21025-dc7-39462498"
     40 Accept-Ranges: bytes
     41 Location: %TESTNUMBER0001
     42 Content-Length: 6
     43 Connection: close
     44 Content-Type: text/html
     45 Funny-head: yesyes
     46 
     47 HTTP/1.1 200 OK
     48 Content-Length: 6
     49 Connection: close
     50 Content-Type: text/html
     51 
     52 -bar-
     53 </datacheck>
     54 </reply>
     55 
     56 # Client-side
     57 <client>
     58 <server>
     59 http
     60 </server>
     61 <features>
     62 http
     63 </features>
     64 <tool>
     65 lib1576
     66 </tool>
     67 
     68 <name>
     69 CURLFOLLOW_OBEYCODE with custom PUT method, 303 => GET
     70 </name>
     71 <command>
     72 http://%HOSTIP:%HTTPPORT/%TESTNUMBER %TESTNUMBER
     73 </command>
     74 </client>
     75 
     76 # Verify data after the test has been "shot"
     77 <verify>
     78 <strip>
     79 ^User-Agent:.*
     80 </strip>
     81 <protocol crlf="yes">
     82 CURL /%TESTNUMBER HTTP/1.1
     83 Host: %HOSTIP:%HTTPPORT
     84 Accept: */*
     85 Content-Length: 45
     86 
     87 request indicates that the client, which madeGET /%TESTNUMBER0001 HTTP/1.1
     88 Host: %HOSTIP:%HTTPPORT
     89 Accept: */*
     90 
     91 </protocol>
     92 </verify>
     93 </testcase>