quickjs-tart

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

test1613 (799B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP proxy
      6 --request-target
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK
     15 Date: Sat, 29 Feb 2020 16:10:44 GMT
     16 Server: Blafasel/1.1
     17 Last-Modified: Sat, 29 Feb 2020 16:10:44 GMT
     18 Content-Length: 0
     19 Connection: close
     20 Content-Type: text/html
     21 
     22 </data>
     23 </reply>
     24 
     25 #
     26 # Client-side
     27 <client>
     28 <server>
     29 http
     30 </server>
     31 <name>
     32 Send "OPTIONS *" with --request-target to a proxy
     33 </name>
     34 <features>
     35 proxy
     36 </features>
     37 <command>
     38 --request-target '*' -X OPTIONS --proxy http://%HOSTIP:%HTTPPORT/ -H "Testno: %TESTNUMBER" http://www.example.org/
     39 </command>
     40 </client>
     41 
     42 <verify>
     43 <protocol>
     44 OPTIONS * HTTP/1.1
     45 Host: www.example.org
     46 User-Agent: curl/%VERSION
     47 Accept: */*
     48 Proxy-Connection: Keep-Alive
     49 Testno: %TESTNUMBER
     50 
     51 </protocol>
     52 </verify>
     53 </testcase>