Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

urllib2 authentication redirection error(?) #41203

Closed
allanbwilson mannequin opened this issue Nov 22, 2004 · 3 comments
Closed

urllib2 authentication redirection error(?) #41203

allanbwilson mannequin opened this issue Nov 22, 2004 · 3 comments
Labels
stdlib Python modules in the Lib dir

Comments

@allanbwilson
Copy link
Mannequin

allanbwilson mannequin commented Nov 22, 2004

BPO 1070735

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2005-05-22.18:39:27.000>
created_at = <Date 2004-11-22.02:01:03.000>
labels = ['library']
title = 'urllib2 authentication redirection error(?)'
updated_at = <Date 2005-05-22.18:39:27.000>
user = 'https://bugs.python.org/allanbwilson'

bugs.python.org fields:

activity = <Date 2005-05-22.18:39:27.000>
actor = 'allanbwilson'
assignee = 'none'
closed = True
closed_date = None
closer = None
components = ['Library (Lib)']
creation = <Date 2004-11-22.02:01:03.000>
creator = 'allanbwilson'
dependencies = []
files = []
hgrepos = []
issue_num = 1070735
keywords = []
message_count = 3.0
messages = ['23231', '23232', '23233']
nosy_count = 2.0
nosy_names = ['jjlee', 'allanbwilson']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue1070735'
versions = ['Python 2.3']

@allanbwilson
Copy link
Mannequin Author

allanbwilson mannequin commented Nov 22, 2004

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

@allanbwilson allanbwilson mannequin closed this as completed Nov 22, 2004
@allanbwilson allanbwilson mannequin added the stdlib Python modules in the Lib dir label Nov 22, 2004
@allanbwilson allanbwilson mannequin closed this as completed Nov 22, 2004
@allanbwilson allanbwilson mannequin added the stdlib Python modules in the Lib dir label Nov 22, 2004
@jjlee
Copy link
Mannequin

jjlee mannequin commented May 19, 2005

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

@allanbwilson
Copy link
Mannequin Author

allanbwilson mannequin commented May 22, 2005

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

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

0 participants