quickjs-tart

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

test325 (960B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTPS
      5 HTTP GET
      6 --proto-redir
      7 </keywords>
      8 </info>
      9 
     10 #
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 301 OK
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Server: test-server/fake
     17 Content-Length: 7
     18 Location: http://somewhere/%TESTNUMBER
     19 
     20 MooMoo
     21 </data>
     22 <datacheck>
     23 HTTP/1.1 301 OK
     24 Date: Tue, 09 Nov 2010 14:49:00 GMT
     25 Server: test-server/fake
     26 Content-Length: 7
     27 Location: http://somewhere/%TESTNUMBER
     28 
     29 </datacheck>
     30 </reply>
     31 
     32 #
     33 # Client-side
     34 <client>
     35 <features>
     36 SSL
     37 </features>
     38 <server>
     39 https
     40 </server>
     41 <name>
     42 HTTPS with attempted redirect to denied HTTP
     43 </name>
     44 <command>
     45 --insecure https://%HOSTIP:%HTTPSPORT/%TESTNUMBER --proto-redir -http --location
     46 </command>
     47 </client>
     48 
     49 #
     50 # Verify data after the test has been "shot"
     51 <verify>
     52 <protocol>
     53 GET /%TESTNUMBER HTTP/1.1
     54 Host: %HOSTIP:%HTTPSPORT
     55 User-Agent: curl/%VERSION
     56 Accept: */*
     57 
     58 </protocol>
     59 # 1 - Protocol http not supported or disabled in libcurl
     60 <errorcode>
     61 1
     62 </errorcode>
     63 </verify>
     64 </testcase>