MCPcopy Create free account
hub / github.com/LumingMelody/JS_reverse / sentRequest

Function sentRequest

xhs_2024.py:46–56  ·  view source on GitHub ↗
(host, api, data, cookie)

Source from the content-addressed store, hash-verified

44
45
46def sentRequest(host, api, data, cookie):
47 print(cookie, api, data)
48 xs_xt = getXs(cookie, api, data)
49 print(xs_xt)
50 headers['cookie'] = cookie
51 headers['X-s'] = xs_xt['X-s']
52 headers['X-t'] = str(xs_xt['X-t'])
53
54 url = host + api
55
56 return requests.post(url=url, data=json.dumps(data, separators=(",", ":")), headers=headers)
57
58
59def DoApi(param, cookie):

Callers 1

DoApiFunction · 0.85

Calls 1

getXsFunction · 0.85

Tested by

no test coverage detected