BrU32

JS Ajax GetAllHeaders SRC V1

Jul 20th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <center>
  2. <button onclick="GetAllHeaders()">Get All Headers</button>
  3. <p id="demo"></p>
  4. <script>
  5. function GetAllHeaders() {
  6. var xhttp = new XMLHttpRequest();
  7. xhttp.open("GET","data:text/vbscript,Msgbox(document.body.innerText)", true);
  8. xhttp.send();
  9. xhttp.onreadystatechange = function(data,e) {
  10. document.write(xhttp.getAllResponseHeaders(data));
  11. }
  12. }
  13. </script>
  14. </body>
  15. </center>
Advertisement
Add Comment
Please, Sign In to add comment