forked from google/security-crawl-maze
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request google#11 from hjkeller16:master
PiperOrigin-RevId: 456751472 Change-Id: I944b060e60068dbb3eaa7536ae7120102159067d
- Loading branch information
Showing
5 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CrawlMaze - Testbed for Web Crawlers - form tag</title> | ||
<h1> DELETE method from JavaScript </h1> | ||
<input type="button" onClick="myFunction()" id = 'btn' value="Submit"> | ||
<p> | ||
The DELETE request is sent via JavaScript fetch when the button is clicked. | ||
</p> | ||
|
||
<script> | ||
function myFunction(){ | ||
var data = new FormData(document.getElementById("form")); | ||
fetch("/test/javascript/interactive/js-delete.found", {method: "DELETE",body:data}); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CrawlMaze - Testbed for Web Crawlers - form tag</title> | ||
<h1> POST method from JavaScript </h1> | ||
<input type="button" onClick="myFunction()" id = 'btn' value="Submit"> | ||
<p> | ||
The POST request is sent via JavaScript fetch when the button is clicked. | ||
</p> | ||
|
||
<script> | ||
function myFunction(){ | ||
fetch("/test/javascript/interactive/js-post.found", {method: "POST"}); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CrawlMaze - Testbed for Web Crawlers - form tag</title> | ||
<h1> PUT method from JavaScript </h1> | ||
<input type="button" onClick="myFunction()" id = 'btn' value="Submit"> | ||
<p> | ||
The PUT request is sent via JavaScript fetch when the button is clicked. | ||
</p> | ||
|
||
<script> | ||
function myFunction(){ | ||
fetch("/test/javascript/interactive/js-put.found", {method: "PUT"}); | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<body > | ||
<title>CrawlMaze - Testbed for Web Crawlers - form tag</title> | ||
<h1> Automatic POST </h1> | ||
<p> | ||
A POST request is automatically sent five seconds after opening the page. | ||
</p> | ||
</body> | ||
|
||
<script> | ||
setTimeout(function() { | ||
fetch("/test/javascript/misc/automatic-post.found", {method: "POST"}); | ||
}, 5000) | ||
</script> | ||
|