473,395 Members | 1,456 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

win32com with basic authentication

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


-----------------------------------------------------------------
¨C¤Ñ³£ Yahoo!©_¼¯
®üªºÃC¦â¡B*·ªº®ð®§¡B·R§Aªº·Å«×¡AºÉ¦b«H¯È©³¹Ï
http://tw.promo.yahoo.com/mail_premium/stationery.html

Jul 18 '05 #1
4 4504
jeff <j5*****@yahoo.com.tw> writes:
[...]
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
Jul 18 '05 #2
For most sites, you can embed the username and password into the url like
this:
http://username:pa******@www.sitename.com
hth
Roger

"jeff" <j5*****@yahoo.com.tw> wrote in message
news:ma************************************@python .org...
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


-----------------------------------------------------------------
¨C¤Ñ³£ Yahoo!©_¼¯
®üªºÃC¦â¡B*·ªº®ð®§¡B·R§Aªº·Å«×¡AºÉ¦b«H¯È©³¹Ï
http://tw.promo.yahoo.com/mail_premium/stationery.html

Jul 18 '05 #3
Hi !

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

@-salutations
--
Michel Claveau
Jul 18 '05 #4
"Michel Claveau/Hamster" <No********@No.Spam.mclaveau.No.Spam.com> writes:
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
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bram Stolk | last post by:
Hi there, I am accessing Excel's functionality via COM, by using the win32com extention. This works somewhat: If I run it from the 'IDLE' editor, I get frequent hangs or errors. Sometimes...
2
by: Raoul | last post by:
I wrote a COM server object in C++ a few months ago. I can use it from Visual Basic, Visual C++, S-Plus and a number of other scripting environments. What I can't do is use it with my FAVOURITE...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
4
by: Dave | last post by:
Hi, Is there anyway to mimic forms authentication's loginUrl and RedirectFromLoginPage functionality using Windows authentication? We are developing intranet sites using basic authentication...
3
by: sefe dery | last post by:
hi ng, i try to create a asp.net 1.0 website on windows server 2003(Servername: ServerX) with iis 6.0. PROBLEM: The user should login with his windows credentials in basic.aspx and...
3
by: Martin | last post by:
How does one set up basic authentication on an HttpListener? I know I need to set the HttpListener.AuthenticationSchemes to AuthenticationSchemes.Basic but then I'm unsure how and against what...
2
by: floris.vannee | last post by:
Hi, Is it possible to create a com server in python and then access that server using VB .NET, for example using the following code. A very basic com server i found in a tutorial about win32com:...
0
by: =?Utf-8?B?S29uc3RhbnRpbg==?= | last post by:
I am currently working on the application that need to simulate basic authentication programmatically using user's credentials that are known. Basically, the need is for a single sign on with a...
2
by: korean_dave | last post by:
Hi. I need a dummy's explanation to utilizing the win32com component to access Microsoft Excel. So far, I have this code. import win32com.client xl =...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.