Issue 153 in httplib2: cookie not set on 302 redirect

46 views
Skip to first unread message

codesite...@google.com

unread,
Jun 17, 2011, 11:51:22 AM6/17/11
to httplib...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 153 by cyker...@gmail.com: cookie not set on 302 redirect
http://code.google.com/p/httplib2/issues/detail?id=153

What steps will reproduce the problem?
1. Setup a server page which both sets cookie and return 302 code
2. Connect to this page using httplib2

What is the expected output? What do you see instead?

The 302 page should set cookie, but it doesn't.


What version of the product are you using? On what operating system?
httplib2 0.6.0, Linux.

Please provide any additional information below.

codesite...@google.com

unread,
Jun 17, 2011, 12:18:57 PM6/17/11
to httplib...@googlegroups.com

Comment #1 on issue 153 by cyker...@gmail.com: cookie not set on 302
redirect
http://code.google.com/p/httplib2/issues/detail?id=153

A correction of formulation. When I set follow_redirects = False, I find
after visiting the 302 page, the cookie is set. So I guess when
follow_redirects is set to True, this cookie is auto discarded when
visiting the page to redirect to (i.e. the Location page). However, this
might not be what the user wants, because the cookies set by the 302 page
may be useful in the Location page.

codesite...@google.com

unread,
Jun 17, 2011, 1:39:42 PM6/17/11
to httplib...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 11

Comment #2 on issue 153 by joe.gregorio: cookie not set on 302 redirect
http://code.google.com/p/httplib2/issues/detail?id=153

httplib2 has no cookie handling yet.

Reply all
Reply to author
Forward
0 new messages