本文为霍格沃兹测试开发学社学员学习笔记分享
原文链接:https://ceshiren.com/t/topic/28019
在得到响应后对响应做解密处理:
class TestEncode:
def test_decode(self):
url = "http://127.0.0.1:9999/demo.txt"
res = requests.request("get",url)
print(res.content)
de_res = base64.b64decode(res.content)
print(json.loads(de_res))