Last active
February 15, 2019 01:27
-
-
Save shuidong/cc8144c611937d94733c2a55e96f5184 to your computer and use it in GitHub Desktop.
自动登录readfree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require("https"); | |
var querystring = require("querystring"); | |
var options = { | |
host: "readfree.me", | |
path: "/auth/login/", | |
method: "get", | |
headers: { | |
"Content-Type": "application/x-www-form-urlencoded", | |
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", | |
"Accept-Language": "ja", | |
Cookie: "ccccccccccccc", | |
"Cache-Control": "no-cache", | |
"Connection": "Keep-Alive", | |
"Host": "readfree.me", | |
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" | |
} | |
}; | |
var req = https.request(options, function (res) { | |
res.setEncoding("utf8"); | |
var headers = res.headers; | |
res.on("data", function (data) { | |
console.log(data); | |
}); | |
}); | |
req.end(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment