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

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.3
>Status: Closed
Resolution: None
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: 2005-05-22 11:39

Message:
Logged In: YES 
user_id=725330

Yes, that makes sense. Unfortunately the site is a financial
site so I won't be able to supply a demo script. Let's do
close it out on that basis.

Thanks


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

Comment By: John J Lee (jjlee)
Date: 2005-05-19 12:48

Message:
Logged In: YES 
user_id=261020

Allan, unfortunately there's no way of investigating this
without a running script that demonstrates the problem. 
Please supply one, or close the bug.

Thanks


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1070735&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to