Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var http = require('http');
var targetUrl = '';
var body = '<html>'
+ '<head></head>'
+ '<body>'
+ '<form action="' + targetUrl + '" method="POST">'
+ '<input type="text" name="hello" value="world"/>'
+ '</form>'
+ '<script> document.forms[0].submit();</script>'
+ '</body>'
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/html'});
console.log('访问 ,去看 POST 请求是否发送了 cookie!');
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.