Created
January 30, 2018 10:27
-
-
Save coolicer/72d11dc14170b8b48bd515757356f3ea to your computer and use it in GitHub Desktop.
115 get download process
This file contains hidden or 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
(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