[ python-Bugs-1071147 ] urllib2 authentication redirection error(?)

SourceForge.net noreply at sourceforge.net
Wed Nov 24 23:05:57 CET 2004


Bugs item #1071147, was opened at 2004-11-22 09:30
Message generated for change (Comment added) made by allanbwilson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1071147&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: Allan B. Wilson (allanbwilson)
Assigned to: Nobody/Anonymous (nobody)
Summary: urllib2 authentication redirection error(?)

Initial Comment:
I am trying to use urllib2 to retrieve a page from a
site requiring authentication. I supply the
authentication parameters, which succeed, and *a* page
is returned -- but not the page I originally requested.
As it turns out, the authentication is handled at a
completely different URL (actually a different domain);
I can confirm this by not supplying authentication
data, because I see a 302 earlier in the traceback when
authentication fails.

What I think is happening is that the redirect happens
to the authentication site, but the original URL that I
wanted has been forgotten. The page I get back is the
default page for the original (now authenticated) site,
not the page itself, which is deeper down in the site
hierarchy.

Sorry, I can't supply a patch!

Thanks


----------------------------------------------------------------------

>Comment By: Allan B. Wilson (allanbwilson)
Date: 2004-11-24 14:05

Message:
Logged In: YES 
user_id=725330

Thanks for eliminating the duplicate bug report.

As extra info on the reported problem, the latest versions
of Internet Explorer and Firefox handle the described case
fine on Windows, and Safari on OS X also knows how to deal
with it. However, Opera (only tried on Windows) has some
trouble with authentication redirected to another site.

I wasn't sure if I could/should add the above comment to the
original bug report or not.


----------------------------------------------------------------------

Comment By: Facundo Batista (facundobatista)
Date: 2004-11-24 04:09

Message:
Logged In: YES 
user_id=752496

Duplicate of #1070735.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1071147&group_id=5470


More information about the Python-bugs-list mailing list