尝试使用get请求中的cookies发送Post请求import re #regeximport urllib2x = urllib2.urlopen("http=response.headers['set-cookie'] #to get the last cookies from post req in this variable如何
问题是没有维护用户的会话,而是提供了新生成的会话,因为XDomainRequest在向服务器发送数据时排除了cookie。总之,我终于发现可以通过重写URL来解决这个问题。因此,我想知道如何重写URL以维护流行的服务器端技术(如.NET、PHP、Python和Ruby )中的用户会话。例如,在中/event-stream;jsessionid=(The value of JSESSIONID contained in