Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 当服务器问题使用ClientSession重定向时缺少cookie_Python 3.x_Cookies_Aiohttp - Fatal编程技术网

Python 3.x 当服务器问题使用ClientSession重定向时缺少cookie

Python 3.x 当服务器问题使用ClientSession重定向时缺少cookie,python-3.x,cookies,aiohttp,Python 3.x,Cookies,Aiohttp,一个很好的例子是站点登录:POST用户凭据和会话cookie将使用302设置(设置cookie),但在执行重定向后,ClientResponse.cookies、ClientResponse.history[-1]。cookies和ClientSession.cookie\u jar都不包含会话cookie。这是aiohttp中的错误吗?注意,我确实在ClientResponse.history[-1].headers中看到了cookie。似乎这更像是SimpleCookie的问题

一个很好的例子是站点登录:POST用户凭据和会话cookie将使用302设置(设置cookie),但在执行重定向后,ClientResponse.cookies、ClientResponse.history[-1]。cookies和ClientSession.cookie\u jar都不包含会话cookie。这是aiohttp中的错误吗?注意,我确实在ClientResponse.history[-1].headers中看到了cookie。

似乎这更像是SimpleCookie的问题