Authentication with httplib
aahz at netcom.com
Mon Aug 23 11:12:50 EDT 1999
In article <7prana$a0p$1 at minus.oleane.net>,
Mathieu Lecarme <zehp at francemel.com> wrote:
>you should rather use urllib :
No, you shouldn't, unless you're running an interactive process. urllib
expects stdin to provide name and password. We got bitten by this one;
because we don't care about authorization (yet) but do care about
redirection, we had to subclass fancy_url_opener() (or whatever the
exact spelling is).
If someone is running a batch process, zie will either need to do what
the original poster was doing (use httplib directly) or subclass
urlopen() to make it work in a batch environment.
I've actually got some other problems with urlopen() in that it doesn't
return the HTTP return code.
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6 (if you want to know, do some research)
More information about the Python-list