Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

validating user with webbrowser or internet transfer control

1 view
Skip to first unread message

Erich Specht

unread,
Oct 7, 1999, 3:00:00 AM10/7/99
to
Hello. I am trying to use the webbrowser control to request a restricted
page programatically (no user interaction). Since the page is SSL
encrypted, I think that basic authentication will suffice (correct me if I'm
wrong). I see that the webbrowser control can have additional headers for
this purpose, but I haven't seen any examples of this.

Any VB examples of using the Navigate method with authentication would be
greatly appreciated.

If I am better off using another control, please let me know. But I like
the price of the webbrowser or inet controls. :)

Nicholas Paldino

unread,
Oct 8, 1999, 3:00:00 AM10/8/99
to
Erich,

SSL and basic authentication are two different matters.

SSL requires the use of certificates for validation of identity and uses
encryption.

If you are going to use basic authentication then you will want to add
the following header to the headers passed to the server:

Authorization: Basic <username:password>

Where username is the username and password is the password. I believe the
username:password combo has to be base64 encoded as well.

--
- Nicholas Paldino
- nicholas...@exisconsulting.com

Winfried Kaiser, Fortune Systems GmbH & Co.

unread,
Oct 13, 1999, 3:00:00 AM10/13/99
to
You could also use an URL like
http://username:pass...@server.com/index.html. Thus, encryption would be
done by the system and you couldn't care less.

--
Winfried Kaiser, Fortune Systems GmbH & Co.
Germany
eMail: lo...@fortune.de
Web: http://www.fortune.de

0 new messages