quickjs-tart

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

test2309 (1104B)


      1 <testcase>
      2 <info>
      3 <keywords>
      4 netrc
      5 HTTP
      6 </keywords>
      7 </info>
      8 #
      9 # Server-side
     10 <reply>
     11 <data crlf="yes" nocheck="yes">
     12 HTTP/1.1 200 OK
     13 Date: Tue, 09 Nov 2010 14:49:00 GMT
     14 Server: test-server/fake
     15 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
     16 ETag: "21025-dc7-39462498"
     17 Accept-Ranges: bytes
     18 Content-Length: 6
     19 Connection: close
     20 Content-Type: text/html
     21 Funny-head: yesyes
     22 
     23 -foo-
     24 </data>
     25 </reply>
     26 
     27 #
     28 # Client-side
     29 <client>
     30 <server>
     31 http
     32 </server>
     33 <features>
     34 proxy
     35 </features>
     36 
     37 # Reproducing issue 15496
     38 <name>
     39 HTTP with .netrc using duped easy handle
     40 </name>
     41 <tool>
     42 lib%TESTNUMBER
     43 </tool>
     44 <command>
     45 http://github.com %LOGDIR/netrc%TESTNUMBER http://%HOSTIP:%HTTPPORT/
     46 </command>
     47 <file name="%LOGDIR/netrc%TESTNUMBER" >
     48 
     49 machine github.com
     50 
     51 login daniel
     52 password $y$j9T$WUVjiVvDbRAWafDLs6cab1$01NX.oaZKf5lw8MR2Nk9Yaxv4CqbE0IaDF.GpGxPul1
     53 </file>
     54 </client>
     55 
     56 <verify>
     57 <protocol>
     58 GET http://github.com/ HTTP/1.1
     59 Host: github.com
     60 Authorization: Basic %b64[daniel:$y$j9T$WUVjiVvDbRAWafDLs6cab1$01NX.oaZKf5lw8MR2Nk9Yaxv4CqbE0IaDF.GpGxPul1]b64%
     61 Accept: */*
     62 Proxy-Connection: Keep-Alive
     63 
     64 </protocol>
     65 </verify>
     66 </testcase>