|
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 <title>Network Monitor test page</title> |
|
9 </head> |
|
10 |
|
11 <body> |
|
12 <p>Performing a GET request</p> |
|
13 |
|
14 <script type="text/javascript"> |
|
15 function performRequest(aUrl) { |
|
16 var xhr = new XMLHttpRequest(); |
|
17 xhr.open("GET", aUrl, true); |
|
18 xhr.setRequestHeader("Accept-Language", window.navigator.language); |
|
19 xhr.setRequestHeader("X-Custom-Header-1", "Custom value"); |
|
20 xhr.setRequestHeader("X-Custom-Header-2", "8.8.8.8"); |
|
21 xhr.setRequestHeader("X-Custom-Header-3", "Mon, 3 Mar 2014 11:11:11 GMT"); |
|
22 xhr.send(null); |
|
23 } |
|
24 </script> |
|
25 </body> |
|
26 |
|
27 </html> |