Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var pinoyauth = function(){
- var data = querystring.stringify({'do':'login', 'vb_login_md5password': '', 'vb_login_md5password_utf': '', 's': '','securitytoken': 'guest', 'url': 'http://forums.pinoyanime.tv/forum.php', 'vb_login_username': 'Kamijou Touma', 'vb_login_password': ''});
- var options = {hostname: 'forums.pinoyanime.tv', port: 80, path: '/login.php?do=login', method: 'POST', headers: {'Connection': 'keep-alive', 'Content-Length': data.length, 'Cache-Control': 'max-age=0', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8', 'Origin': 'http://forums.pinoyanime.tv', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36', 'Content-Type': 'application/x-www-form-urlencoded', 'Referer': 'http://forums.pinoyanime.tv/login.php?do=login', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'en-US,en;q=0.8'}};
- var req = http.request(options, function(res) {
- res.setEncoding('utf8');
- }).on('error', function(e) {
- console.log(e);
- });
- req.write(data);
- req.end();
- }
Advertisement
Add Comment
Please, Sign In to add comment