-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathratelimittesting.html
More file actions
38 lines (31 loc) · 954 Bytes
/
Copy pathratelimittesting.html
File metadata and controls
38 lines (31 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<html>
<head>
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<title>Superstorage-Testing</title>
</head>
<body>
<center>
<h1>Rate-Limit Testing</h1>
<em id="info"></em>
<br>
<form id="btn">
<input type="submit" value="Submit Form">
</form>
</center>
</body>
</html>
<script>
$("#btn").submit(function(e) {
e.preventDefault();
var form = $(this);
$.ajax({
type: "POST",
url: "https://api.superstorage.cloud/auth/login/",
data: form.serialize(),
success: function(data)
{
$("#info").html(data["message"]);
},
});
});
</script>