Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
自动登录readfree
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
You can’t perform that action at this time.