quickjs-tart

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

test1246 (1123B)


      1 <testcase>
      2 <info>
      3 # verify URL with hostname ending in pound sign
      4 <keywords>
      5 HTTP
      6 HTTP GET
      7 HTTP proxy
      8 </keywords>
      9 </info>
     10 
     11 #
     12 # Server-side
     13 <reply>
     14 <data>
     15 HTTP/1.1 200 OK
     16 Content-Length: 6
     17 Connection: close
     18 
     19 -foo-
     20 </data>
     21 
     22 <data1>
     23 HTTP/1.1 200 OK
     24 Content-Length: 7
     25 Connection: close
     26 
     27 -cool-
     28 </data1>
     29 </reply>
     30 
     31 #
     32 # Client-side
     33 <client>
     34 <server>
     35 http
     36 </server>
     37 <name>
     38 URL with '#' at end of host name instead of '/'
     39 </name>
     40 <command>
     41 --proxy http://%HOSTIP:%HTTPPORT http://test.remote.haxx.se.%TESTNUMBER:%HTTPPORT#@127.0.0.1/tricked.html no-scheme-url.com.%TESTNUMBER:%HTTPPORT#@127.127.127.127/again.html
     42 </command>
     43 <features>
     44 proxy
     45 </features>
     46 </client>
     47 
     48 #
     49 # Verify data after the test has been "shot"
     50 <verify>
     51 <protocol>
     52 GET http://test.remote.haxx.se.%TESTNUMBER:%HTTPPORT/ HTTP/1.1
     53 Host: test.remote.haxx.se.%TESTNUMBER:%HTTPPORT
     54 User-Agent: curl/%VERSION
     55 Accept: */*
     56 Proxy-Connection: Keep-Alive
     57 
     58 GET http://no-scheme-url.com.%TESTNUMBER:%HTTPPORT/ HTTP/1.1
     59 Host: no-scheme-url.com.%TESTNUMBER:%HTTPPORT
     60 User-Agent: curl/%VERSION
     61 Accept: */*
     62 Proxy-Connection: Keep-Alive
     63 
     64 </protocol>
     65 </verify>
     66 </testcase>