Skip to content

Instantly share code, notes, and snippets.

@coolicer
Created January 30, 2018 10: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 coolicer/72d11dc14170b8b48bd515757356f3ea to your computer and use it in GitHub Desktop.
Save coolicer/72d11dc14170b8b48bd515757356f3ea to your computer and use it in GitHub Desktop.
115 get download process
(async function () {
const obj = top.window.Core['OFFL5Plug'].GetDataCtl()._set_sign();
obj.page = 1;
const searchParams = Object.keys(obj).map((key) => {
return encodeURIComponent(key) + '=' + encodeURIComponent(obj[key]);
}).join('&');
const result = await fetch('http://115.com/web/lixian/?ct=lixian&ac=task_lists', {
method: "POST",
credentials: "same-origin",
body: searchParams,
headers: {
"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
},
});
const text = await result.text();
console.log(text);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment