Skip to content

Instantly share code, notes, and snippets.

@nosmall
Created January 6, 2023 09:59
Show Gist options
  • Save nosmall/1ea5c8f2772a2b6513bbe9970fa37817 to your computer and use it in GitHub Desktop.
Save nosmall/1ea5c8f2772a2b6513bbe9970fa37817 to your computer and use it in GitHub Desktop.
Send POST data on redirect
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Send POST data on redirect</title>
</head>
<body>
<script>
var f = document.createElement('form');
f.action='https://b2b.keno-energy.com';
f.method='POST';
f.target='_self';
var i=document.createElement('input');
i.type='hidden';
i.name='config';
i.value='franken';
f.appendChild(i);
document.body.appendChild(f);
f.submit();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment