Python和邮递员提供了不同的标题

时间:2019-01-29 10:25:45

标签: api postman

当我在python中执行Get API请求和通过PostmanAPI进行相同的Get API请求时,它将返回Header作为输出。但是它们既不相同也不相同。我需要一些Postman列出的参数,而这些参数我不是通过python获取的。

代码: print(response.headers) python的输出: {'x-amz-request-id':'2DDB5734432F5013','x-amz-id-2':'dJ1JxD19Cg22z1b9ZhdZx1X3Rlpgw2PL8k6yd90Wk9zf8antzSIWEhLTBChdsTwu8cxc6CocwLU,'',' 10:18:04 GMT','ETag':'“ 24d0a027ba0f276ca66203026eecc338”','Accept-Ranges':'bytes','Last-Modified':'Tue,29 Jan 2019 09:53:22 GMT','Content -Type”:“ application / octet-stream”,“ Server”:“ AmazonS3”}

邮递员的输出: [我需要在python输出中使用location参数][1]

0 个答案:

没有答案
相关问题