Cooler_

test post

Jul 23rd, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. var http = new XMLHttpRequest();
  5. var url = "http://www.WebbotsSpidersScreenScrapers.com/form_analyzer.php";
  6. var params = "username=admin&name=password";
  7. http.open("POST", url, true);
  8.  
  9. //Send the proper header information along with the request
  10. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  11. http.setRequestHeader("Content-length", params.length);
  12. http.setRequestHeader("Connection", "close");
  13.  
  14. http.onreadystatechange = function() {//Call a function when the state changes.
  15.     if(http.readyState == 4 && http.status == 200) {
  16.         alert(http.responseText);
  17.     }
  18. }
  19. http.send(params);
  20.  
  21.  
  22. </script>
  23. </head>
  24.  
  25. <body>ola</body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment