1 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
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>
15 <p>JSON request test page
</p>
16 <p>Pass the JSON name (as supported by sjs_json-test-server.sjs) as a query parameter
</p>
18 <script type=
"text/javascript">
19 /* exported performRequests */
22 function get(address
) {
23 return new Promise(resolve
=> {
24 const xhr
= new XMLHttpRequest();
25 xhr
.open("GET", address
, true);
27 xhr
.onreadystatechange = function() {
28 if (this.readyState
== this.DONE
) {
36 async
function performRequests() {
37 // Forward the query parameter for this page to sjs_json-test-server
38 await
get("sjs_json-test-server.sjs" + window
.location
.search
);