提交 236b0042 编写于 作者: H hjdhnx

增加js0 post搜索打印请求头

上级 9af09992
......@@ -1302,6 +1302,7 @@ class CMS:
# data = ujson.dumps(new_dict)
data = new_dict
# print(data)
logger.info(self.headers)
r = requests.post(rurl, headers=self.headers,data=data, timeout=self.timeout, verify=False)
elif req_method == 'postjson':
rurls = url.split(';')[0].split('#')
......@@ -1313,6 +1314,7 @@ class CMS:
params = ujson.dumps(params)
except:
params = '{}'
logger.info(headers_cp)
r = requests.post(rurl, headers=headers_cp, data=params, timeout=self.timeout, verify=False)
else:
r = requests.get(url, headers=self.headers,timeout=self.timeout,verify=False)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册