MCPcopy
hub / github.com/chavyleung/scripts / getcookie

Function getcookie

haidilao/hdl.js:15–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13}
14
15function getcookie() {
16 if ($request && $request.method == 'POST') {
17 const signurlVal = $request.url
18 const signheaderVal = JSON.stringify($request.headers)
19 const signbodyVal = $request.body
20
21 if (signurlVal) hdl.setdata(signurlVal, signurlKey)
22 if (signheaderVal) hdl.setdata(signheaderVal, signheaderKey)
23 if (signbodyVal) hdl.setdata(signbodyVal, signbodyKey)
24 hdl.msg(cookieName, `获取Cookie: 成功, 请禁用该脚本`, ``)
25 }
26 hdl.done()
27}
28
29function sign() {
30 const signurlVal = hdl.getdata(signurlKey)

Callers 1

hdl.jsFile · 0.70

Calls 3

setdataMethod · 0.45
msgMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…