quickjs-tart

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

test1476 (1058B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 cookies
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 
     13 <data crlf="yes">
     14 HTTP/1.1 200 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Content-Length: 0
     17 Set-Cookie: super=oops; domain=co.UK; path=/
     18 Set-Cookie: fine=yesyes; domain=CURL.CO.UK; path=/
     19 
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 <name>
     29 PSL violating cookie with mixed case domain and cookie domain property
     30 </name>
     31 <command>
     32 -x http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://curl.co.UK -c %LOGDIR/cookies%TESTNUMBER.txt
     33 </command>
     34 <features>
     35 proxy
     36 PSL
     37 cookies
     38 </features>
     39 </client>
     40 
     41 # Verify data after the test has been "shot"
     42 <verify>
     43 <protocol crlf="yes">
     44 GET http://curl.co.UK/ HTTP/1.1
     45 Host: curl.co.UK
     46 User-Agent: curl/%VERSION
     47 Accept: */*
     48 Proxy-Connection: Keep-Alive
     49 
     50 </protocol>
     51 <file name="%LOGDIR/cookies%TESTNUMBER.txt" mode="text">
     52 # Netscape HTTP Cookie File
     53 # https://curl.se/docs/http-cookies.html
     54 # This file was generated by libcurl! Edit at your own risk.
     55 
     56 .CURL.CO.UK	TRUE	/	FALSE	0	fine	yesyes
     57 </file>
     58 </verify>
     59 </testcase>