473,405 Members | 2,282 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,405 software developers and data experts.

mshtml - autobrowsing, and authentication

hi - my foray into 'autobrowsing' using mshtml etc is going ok - but
rather slow (partly) because I'm struggling to find documentation.

anyone have any idea how to achieve authentication in an automated
way?

I have automatically navigated to a page in IE, automatically clicked
a link, but am stuck when the browser challanges for credentials. I
was hoping for a 'OnBasicAuthChallange' event, or some
username/password area of the MSHTML document I could set...

I guess I *could* try navigating to url like this:
http://user:pa**@www.mysite.com - but there must be another way....

more broadly - anyone have hints on where I might find documentation
for this sort of stuff...

thanks all,
regards,
Oliver.
Nov 15 '05 #1
1 2696
Oliver,

When you are calling the Navigate method for the WebBrowser, you can
pass the headers for the authenication as the last parameter.

Using MSHTML, you can use the IAuthenticate interface (defined in COM)
to be called when you come across an authenticated resource. There is an
example of how to do this, but it uses C. However, it shows how to do it
overall using the appropriate interfaces, which you can then implement in
..NET. The article is titled "SAMPLE: Progress Uses IAuthenticate to Bind to
Secured Web Page" and can be found at (watch for line wrap):

http://support.microsoft.com/default...b;en-us;156905

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Oliver" <sp*************@yahoo.com> wrote in message
news:58*************************@posting.google.co m...
hi - my foray into 'autobrowsing' using mshtml etc is going ok - but
rather slow (partly) because I'm struggling to find documentation.

anyone have any idea how to achieve authentication in an automated
way?

I have automatically navigated to a page in IE, automatically clicked
a link, but am stuck when the browser challanges for credentials. I
was hoping for a 'OnBasicAuthChallange' event, or some
username/password area of the MSHTML document I could set...

I guess I *could* try navigating to url like this:
http://user:pa**@www.mysite.com - but there must be another way....

more broadly - anyone have hints on where I might find documentation
for this sort of stuff...

thanks all,
regards,
Oliver.

Nov 15 '05 #2

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

Similar topics

1
by: Dean Hallman | last post by:
I need to ensure client machine has Microsoft.mshtml installed in the GAC. And if not, deploy it. My app is a Browser Helper Object and depends on mshtml. Initially, I thought I could take care...
4
by: David Pendrey | last post by:
Hello all, I am using the WebBrowser control to browse a webpage containing frames and am having difficulties accessing the 'frames' property of a document object. Bellow is my code and the error...
10
by: Hans Merkl | last post by:
Hi, I have written an pap with .NET 2.0 and c# that uses MSHTML. It works fine on my development machine but on machines I deploy it to I get the following exception when ever I call MSHTML. ...
2
by: DotNetShadow | last post by:
Hi Guys, I have been reading heaps of information in regards to MSHTML object being used in .NET applications, windows and UI-less. I have read the walkall samples and tried various techniques...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
5
by: Atara | last post by:
I am trying to convert the following code to VB .Net, I still have some gaps (the lines that are marked with (*)) and also I need an ending condition for the while loop. any help would be...
0
by: Atara | last post by:
Our application was build with VS 2003. I have tried to run it on a computer with .Net 2.0 (but without .Net 1.1 , as it should be used) and I got the following error - ...
11
by: Lucky | last post by:
hi guys, i need to parse html data that i've got from "Inet" object in vb6. now i want to prase the html data. here i got 2 options. one is MSXML and other is MSHTML. i tried both of them but i...
5
by: Jason | last post by:
Hi, I'm developing an HTML Editor Control using VB.Net 2003 for an application that used to use the DHTML Editor Control that is no longer supported. Well, it's been fun but I've hit a wall with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.