win32com with basic authentication

?

=?big5?q?jeff?=

does anyone can help me with following situation.
I use win32com.client to dispatch IE for a URL
browing.
However, the URL I am going require a HTTP basic
authentication login.
When IE starts to brow,the Login window pop up.
I was trying to enter the right password for it, but
IE wouldn't take it. it just keep poping up login
window. How do I write auto login method to send
user/password with COM method to bypass pop window for
login.
Or you might also help me how to dispatch for Netscape
browser. How do I dispatch it with a opening brower?
I know how to do it for IE, but don't know how to get
Info for netscape.


thanks for help.


Jeff
 
M

Michel Claveau/Hamster

Hi !

Search "ClientForm". This can help you.
"Auto-it" is another solution.

@-salutations
 
J

John J. Lee

jeff said:
I use win32com.client to dispatch IE for a URL
browing. [...]
When IE starts to brow,the Login window pop up.
I was trying to enter the right password for it, but
IE wouldn't take it. it just keep poping up login
window. How do I write auto login method to send
user/password with COM method to bypass pop window for
login.

This is a question for the microsoft.* newsgroups.

Or you might also help me how to dispatch for Netscape
browser. How do I dispatch it with a opening brower?
I know how to do it for IE, but don't know how to get
Info for netscape.

Netscape... does that exist any more (serious question)? As for
Mozilla, try PyXPCOM. Or DCOP and Konqueror (or possibly, you might
be able to write a plugin for Konqueror using PyKDE now, not sure).
I've never tried either, and they might be a pain to get built and
working.


John
 
J

John J. Lee

Michel Claveau/Hamster said:
Hi !

Search "ClientForm". This can help you.
[...]

You (jeff) need basic HTTP auth too, which is urllib2's job.

If you use urllib2, the library docs for authentication are a bit
lacking ATM, so see the examples here:

http://www.python.org/sf/798244


If you use them, *please* leave a comment to indicate whether the docs
there are OK.


John
 

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

Forum statistics

Threads
474,170
Messages
2,570,921
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top