使用Python请求库获取已发送和已接收数据的时间戳

时间:2019-10-09 11:41:27

标签: python python-requests

使用Python的a[..., j].rehape(a.shape[:-1] + (1,)) 库,有可能获得接收和发送数据的确切时间戳,例如标头还是有效载荷数据?

示例:

requests

输出(请注意,标头和有效载荷数据可能具有不同的接收时间戳!):

import requests

url     = 'http://mytest.url'
headers = {'User-Agent': 'My Agent'}
payload = 'Hello World'

response = requests.post(url, payload, headers)

print response

问候, 史蒂夫

0 个答案:

没有答案