quickjs-tart

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

test998 (1594B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 HTTP
      5 --location-trusted
      6 </keywords>
      7 </info>
      8 
      9 #
     10 # Server-side
     11 <reply>
     12 <data>
     13 HTTP/1.1 301 redirect
     14 Date: Tue, 09 Nov 2010 14:49:00 GMT
     15 Server: test-server/fake
     16 Content-Length: 0
     17 Connection: close
     18 Content-Type: text/html
     19 Location: http://somewhere.else.example/a/path/%TESTNUMBER0002
     20 
     21 </data>
     22 <data2>
     23 HTTP/1.1 200 OK
     24 Date: Tue, 09 Nov 2010 14:49:00 GMT
     25 Content-Length: 6
     26 Content-Type: text/html
     27 Funny-head: yesyes
     28 
     29 -foo-
     30 </data2>
     31 
     32 <datacheck>
     33 HTTP/1.1 301 redirect
     34 Date: Tue, 09 Nov 2010 14:49:00 GMT
     35 Server: test-server/fake
     36 Content-Length: 0
     37 Connection: close
     38 Content-Type: text/html
     39 Location: http://somewhere.else.example/a/path/%TESTNUMBER0002
     40 
     41 HTTP/1.1 200 OK
     42 Date: Tue, 09 Nov 2010 14:49:00 GMT
     43 Content-Length: 6
     44 Content-Type: text/html
     45 Funny-head: yesyes
     46 
     47 -foo-
     48 </datacheck>
     49 
     50 </reply>
     51 
     52 #
     53 # Client-side
     54 <client>
     55 <features>
     56 proxy
     57 </features>
     58 <server>
     59 http
     60 </server>
     61 <name>
     62 HTTP with auth in URL redirected to another host
     63 </name>
     64 <command>
     65 -x %HOSTIP:%HTTPPORT http://alberto:einstein@somwhere.example/%TESTNUMBER --location-trusted
     66 </command>
     67 </client>
     68 
     69 #
     70 # Verify data after the test has been "shot"
     71 <verify>
     72 <strip>
     73 QUIT
     74 </strip>
     75 <protocol>
     76 GET http://somwhere.example/998 HTTP/1.1
     77 Host: somwhere.example
     78 Authorization: Basic %b64[alberto:einstein]b64%
     79 User-Agent: curl/%VERSION
     80 Accept: */*
     81 Proxy-Connection: Keep-Alive
     82 
     83 GET http://somewhere.else.example/a/path/9980002 HTTP/1.1
     84 Host: somewhere.else.example
     85 Authorization: Basic %b64[alberto:einstein]b64%
     86 User-Agent: curl/%VERSION
     87 Accept: */*
     88 Proxy-Connection: Keep-Alive
     89 
     90 </protocol>
     91 </verify>
     92 </testcase>