Skip to content

Instantly share code, notes, and snippets.

@msdousti
Last active July 3, 2017 09:33
Show Gist options
  • Save msdousti/418ee2d42cac914beeceda2f5be68fba to your computer and use it in GitHub Desktop.
Save msdousti/418ee2d42cac914beeceda2f5be68fba to your computer and use it in GitHub Desktop.
A simple HTML file making 100 dummy POST requests to /form.php
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>A Page</title>
</head>
<body>
This is a simple page
<script type="text/javascript">
for (var i = 0; i < 100; i++) {
var xhttp = new XMLHttpRequest();
xhttp.open("POST", "/form.php", false);
xhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhttp.send("username=admin&password=123456");
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment