quickjs-tart

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

test62 (1338B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP replaced headers
      7 cookies
      8 httponly
      9 </keywords>
     10 </info>
     11 
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.0 200 OK swsclose
     16 Date: Tue, 09 Nov 2010 14:49:00 GMT
     17 Content-Type: text/html
     18 
     19 boo
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 <name>
     29 HTTP, send cookies when using custom Host:
     30 </name>
     31 <command>
     32 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER?hoge=fuga -b %LOGDIR/jar%TESTNUMBER.txt -H "Host: www.host.foo.com"
     33 </command>
     34 <file name="%LOGDIR/jar%TESTNUMBER.txt">
     35 # Netscape HTTP Cookie File
     36 # https://curl.se/docs/http-cookies.html
     37 # This file was generated by libcurl! Edit at your own risk.
     38 
     39 #HttpOnly_.foo.com	TRUE	/we/want/	FALSE	22147483647	test	yes
     40 .host.foo.com	TRUE	/we/want/	FALSE	22147483647	test2	yes
     41 .fake.host.foo.com	TRUE	/we/want/	FALSE	22147483647	test4	yes
     42 
     43 .foo.com	TRUE	/moo	TRUE	0	test3	maybe
     44 </file>
     45 <features>
     46 cookies
     47 </features>
     48 </client>
     49 
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <protocol>
     53 GET /we/want/%TESTNUMBER HTTP/1.1
     54 Host: www.host.foo.com
     55 User-Agent: curl/%VERSION
     56 Accept: */*
     57 Cookie: test2=yes; test=yes
     58 
     59 GET /we/want/%TESTNUMBER?hoge=fuga HTTP/1.1
     60 Host: www.host.foo.com
     61 User-Agent: curl/%VERSION
     62 Accept: */*
     63 Cookie: test2=yes; test=yes
     64 
     65 </protocol>
     66 </verify>
     67 </testcase>