quickjs-tart

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

test427 (1250B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 cookies
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data crlf="yes" nocheck="yes">
     14 HTTP/1.1 301 move along
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Accept-Ranges: bytes
     17 Content-Length: 6
     18 Connection: close
     19 Content-Type: text/html
     20 Set-Cookie: long1=%repeat[400 x abcdefgh]%; path="/"
     21 Set-Cookie: long2=%repeat[400 x abcdefgh]%; path="/"
     22 Set-Cookie: long3=%repeat[400 x abcdefgh]%; path="/"
     23 Location: %TESTNUMBER0002
     24 
     25 -foo-
     26 </data>
     27 
     28 <data2 crlf="yes">
     29 HTTP/1.1 200 OK
     30 Date: Tue, 09 Nov 2010 14:49:00 GMT
     31 Accept-Ranges: bytes
     32 Content-Length: 6
     33 Connection: close
     34 Content-Type: text/html
     35 
     36 -foo-
     37 </data2>
     38 
     39 </reply>
     40 
     41 #
     42 # Client-side
     43 <client>
     44 <server>
     45 http
     46 </server>
     47 <name>
     48 Keep Cookie: header within 8190 bytes
     49 </name>
     50 
     51 <command>
     52 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c %LOGDIR/cookies%TESTNUMBER -L
     53 </command>
     54 <features>
     55 cookies
     56 </features>
     57 </client>
     58 
     59 #
     60 # Verify data after the test has been "shot"
     61 <verify>
     62 <protocol crlf="yes">
     63 GET /%TESTNUMBER HTTP/1.1
     64 Host: %HOSTIP:%HTTPPORT
     65 User-Agent: curl/%VERSION
     66 Accept: */*
     67 
     68 GET /%TESTNUMBER0002 HTTP/1.1
     69 Host: %HOSTIP:%HTTPPORT
     70 User-Agent: curl/%VERSION
     71 Accept: */*
     72 Cookie: long3=%repeat[400 x abcdefgh]%; long2=%repeat[400 x abcdefgh]%
     73 
     74 </protocol>
     75 </verify>
     76 </testcase>