user/passwd entry

J

John Smith

Hello,

I'm wondering how to enter the user and password for a site over http?
What's the module that I should use: urllib, htmllib, HTMLParser, httplib?
What are the classes I should call, etc? Thanks for any help.

-k
 
E

Erik Max Francis

John said:
I'm wondering how to enter the user and password for a site over http?
What's the module that I should use: urllib, htmllib, HTMLParser,
httplib?
What are the classes I should call, etc? Thanks for any help.

It depends on exactly how you're entering the password. If it's just
part of a form, then you'd do it through normal CGI means. If it's
actually HTTP authentication, then you can do that by subclassing
urllib.URLopener.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top