Skip to content

Instantly share code, notes, and snippets.

@shuidong
Last active February 15, 2019 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shuidong/cc8144c611937d94733c2a55e96f5184 to your computer and use it in GitHub Desktop.
Save shuidong/cc8144c611937d94733c2a55e96f5184 to your computer and use it in GitHub Desktop.
自动登录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