quickjs-tart

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

test1248 (779B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP proxy
      6 noproxy
      7 </keywords>
      8 </info>
      9 
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 200 OK
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Length: 4
     17 Content-Type: text/html
     18 
     19 foo
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <features>
     26 proxy
     27 </features>
     28 <server>
     29 http
     30 </server>
     31 <name>
     32 Non-proxied host plus --proxy option and --noproxy option
     33 </name>
     34 <command>
     35 http://user:secret@%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://dummy:%NOLISTENPORT/ --noproxy %HOSTIP --max-time 5
     36 </command>
     37 </client>
     38 
     39 # Verify data after the test has been "shot"
     40 <verify>
     41 <protocol>
     42 GET /%TESTNUMBER HTTP/1.1
     43 Host: %HOSTIP:%HTTPPORT
     44 Authorization: Basic %b64[user:secret]b64%
     45 User-Agent: curl/%VERSION
     46 Accept: */*
     47 
     48 </protocol>
     49 </verify>
     50 </testcase>