Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var https = require('https');
- https.post = require('https-post');
- var data = [ "myName", "MyPass"];
- https.post('https://www.mywebsite.com/page.php', { user: data[1], pass: data[2] }, function(res){
- res.setEncoding('utf8');
- res.on('data', function(chunk) {
- console.log(chunk);
- });
- });
Add Comment
Please, Sign In to add comment