quickjs-tart

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

test1908 (1618B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 CURLINFO_EFFECTIVE_URL
      5 </keywords>
      6 </info>
      7 
      8 # Server-side
      9 <reply>
     10 <data nocheck="yes">
     11 HTTP/1.1 200 OK swsbounce
     12 Date: Tue, 09 Nov 2010 14:49:00 GMT
     13 Server: test-server/fake
     14 Content-Type: text/html
     15 Funny-head: yesyes swsclose
     16 Content-Length: 0
     17 alt-svc: h2="3dbbdetxoyw4nsp6c3cc456oj2ays6s43ezxzsfxxri3h5xqd.example:443"; ma=315360000; persist=1
     18 
     19 </data>
     20 
     21 # This is the second response
     22 <data1 nocheck="yes">
     23 HTTP/1.1 200 OK
     24 Connection: close
     25 Content-Length: 0
     26 alt-svc: h2="second.example:443"; ma=315360000;
     27 
     28 </data1>
     29 </reply>
     30 
     31 # Client-side
     32 <client>
     33 <server>
     34 http
     35 </server>
     36 
     37 # require debug so that alt-svc can work over plain old HTTP
     38 <features>
     39 alt-svc
     40 Debug
     41 </features>
     42 <name>
     43 alt-svc cache save after resetting the handle
     44 </name>
     45 <setenv>
     46 # make debug-curl accept Alt-Svc over plain HTTP
     47 CURL_ALTSVC_HTTP="yeah"
     48 </setenv>
     49 <tool>
     50 lib%TESTNUMBER
     51 </tool>
     52 
     53 <command>
     54 %HOSTIP:%HTTPPORT/%TESTNUMBER %LOGDIR/altsvc-%TESTNUMBER
     55 </command>
     56 </client>
     57 
     58 # Verify data after the test has been "shot"
     59 <verify>
     60 <protocol>
     61 GET /%TESTNUMBER HTTP/1.1
     62 Host: %HOSTIP:%HTTPPORT
     63 Accept: */*
     64 
     65 GET /%TESTNUMBER HTTP/1.1
     66 Host: %HOSTIP:%HTTPPORT
     67 Accept: */*
     68 
     69 </protocol>
     70 <stripfile>
     71 # strip out the (dynamic) expire date from the file so that the rest
     72 # matches
     73 s/\"([^\"]*)\"/TIMESTAMP/
     74 </stripfile>
     75 <file name="%LOGDIR/altsvc-%TESTNUMBER" mode="text">
     76 # Your alt-svc cache. https://curl.se/docs/alt-svc.html
     77 # This file was generated by libcurl! Edit at your own risk.
     78 h1 127.0.0.1 %HTTPPORT h2 3dbbdetxoyw4nsp6c3cc456oj2ays6s43ezxzsfxxri3h5xqd.example 443 TIMESTAMP 1 0
     79 </file>
     80 </verify>
     81 </testcase>