def http_error_302(self, req, fp, code, msg, headers):
if "Set-Cookie" in headers:
req.add_header('cookie', headers['Set-Cookie'])
result = urllib2.HTTPRedirectHandler.http_error_302(
self, req, fp, code, msg, headers)
return result
评论列表
文章目录