tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

html_post-array-data-test-page.html (915B)


      1 <!-- Any copyright is dedicated to the Public Domain.
      2     http://creativecommons.org/publicdomain/zero/1.0/ -->
      3 <!doctype html>
      4 
      5 <html>
      6  <head>
      7    <meta charset="utf-8"/>
      8    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
      9    <meta http-equiv="Pragma" content="no-cache" />
     10    <meta http-equiv="Expires" content="0" />
     11    <title>Network Monitor test page</title>
     12  </head>
     13 
     14  <body>
     15    <script type="text/javascript">
     16      /* exported performRequests */
     17      "use strict";
     18 
     19      function performRequests() {
     20        const xhr = new XMLHttpRequest();
     21        xhr.open("POST", "sjs_simple-test-server.sjs", true);
     22 
     23        const postData = JSON.stringify({
     24          watches: ["hello", "how", "are", "you", {
     25            a: 10,
     26            c: 15,
     27            b: ["a", "c", "b"],
     28          }],
     29        });
     30        xhr.send(postData);
     31      }
     32    </script>
     33  </body>
     34 </html>