Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- var http = new XMLHttpRequest();
- var url = "http://www.WebbotsSpidersScreenScrapers.com/form_analyzer.php";
- var params = "username=admin&name=password";
- http.open("POST", url, true);
- //Send the proper header information along with the request
- http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- http.setRequestHeader("Content-length", params.length);
- http.setRequestHeader("Connection", "close");
- http.onreadystatechange = function() {//Call a function when the state changes.
- if(http.readyState == 4 && http.status == 200) {
- alert(http.responseText);
- }
- }
- http.send(params);
- </script>
- </head>
- <body>ola</body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment