quickjs-tart

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

test63 (871B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 HTTP GET
      6 HTTP proxy
      7 HTTP proxy Basic auth
      8 http_proxy
      9 </keywords>
     10 </info>
     11 # Server-side
     12 <reply>
     13 <data>
     14 HTTP/1.1 200 OK swsclose
     15 Date: Tue, 09 Nov 2010 14:49:00 GMT
     16 Content-Type: text/html
     17 Content-Length: 26
     18 
     19 the content would go here
     20 </data>
     21 </reply>
     22 
     23 # Client-side
     24 <client>
     25 <server>
     26 http
     27 </server>
     28 <name>
     29 HTTP with proxy authorization set in environment
     30 </name>
     31 <setenv>
     32 http_proxy=http://fake:user@%HOSTIP:%HTTPPORT/
     33 </setenv>
     34 <command>
     35 http://we.want.that.site.com/%TESTNUMBER
     36 </command>
     37 <features>
     38 proxy
     39 </features>
     40 </client>
     41 
     42 # Verify data after the test has been "shot"
     43 <verify>
     44 <protocol>
     45 GET http://we.want.that.site.com/%TESTNUMBER HTTP/1.1
     46 Host: we.want.that.site.com
     47 Proxy-Authorization: Basic %b64[fake:user]b64%
     48 User-Agent: curl/%VERSION
     49 Accept: */*
     50 Proxy-Connection: Keep-Alive
     51 
     52 </protocol>
     53 </verify>
     54 </testcase>