quickjs-tart

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

test331 (1088B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 cookies
      8 </keywords>
      9 </info>
     10 
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Content-Type: text/html
     18 Content-Length: 4
     19 Set-Cookie: moo=yes;
     20 
     21 hej
     22 </data>
     23 <data2>
     24 HTTP/1.1 200 OK
     25 Date: Tue, 09 Nov 2010 14:49:00 GMT
     26 Server: test-server/fake
     27 Content-Type: text/html
     28 Content-Length: 0
     29 Funny-head: yesyes swsclose
     30 
     31 </data2>
     32 </reply>
     33 
     34 # Client-side
     35 <client>
     36 <server>
     37 http
     38 </server>
     39 <name>
     40 HTTP with cookie using host name 'moo'
     41 </name>
     42 <command>
     43 -x http://%HOSTIP:%HTTPPORT http://moo/we/want/%TESTNUMBER -b none http://moo/we/want/%TESTNUMBER0002
     44 </command>
     45 <features>
     46 cookies
     47 proxy
     48 </features>
     49 </client>
     50 
     51 # Verify data after the test has been "shot"
     52 <verify>
     53 <protocol>
     54 GET http://moo/we/want/%TESTNUMBER HTTP/1.1
     55 Host: moo
     56 User-Agent: curl/%VERSION
     57 Accept: */*
     58 Proxy-Connection: Keep-Alive
     59 
     60 GET http://moo/we/want/%TESTNUMBER0002 HTTP/1.1
     61 Host: moo
     62 User-Agent: curl/%VERSION
     63 Accept: */*
     64 Proxy-Connection: Keep-Alive
     65 Cookie: moo=yes
     66 
     67 </protocol>
     68 </verify>
     69 </testcase>