This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author allanbwilson
Recipients
Date 2004-11-22.17:30:12
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007-08-23 14:27:43adminlinkissue1071147 messages
2007-08-23 14:27:43admincreate