Article ID: 172998 - Last Review: July 15, 2004 - Revision: 4.1 How To Use WebBrowser HEADERS Param in Navigate Method
This article was previously published under Q172998 On This PageSUMMARY
Microsoft Internet Explorer 3.0 includes a custom ActiveX control called
"WebBrowser." When you use WebBrowser in combination with Microsoft Visual
Basic, you can design powerful custom solutions that include Internet
Web browsing features. This article illustrates how to use the WebBrowser
control HEADERS parameter in the Navigate method within Microsoft Visual
Basic.
MORE INFORMATION
The following example creates a mini-browser and uses the HEADERS parameter
of the Navigate method. The HEADERS parameter has different options; this
example uses the Authorization option. Adding this header allows you to
gain access to a password protected URL without being asked for user name
and password via a dialog box generated by the browser control. Note that
code below applies only when Basic scheme is used. Please see HTTP Protocol
specification (available at http://www.w3.org
(http://www.w3.org)
) to get more details on HTTP
Authentication process.
The format for Authorization header is as follow: Authorization: Basic XXXXXXX Step-by-Step Example
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
155969
(http://support.microsoft.com/kb/155969/EN-US/
)
How To Distribute the WebBrowser Control
162719
(http://support.microsoft.com/kb/162719/EN-US/
)
How To Use the WebBrowser Control from Visual Basic 5.0
APPLIES TO
| Other Resources Other Support Sites
CommunityGet Help NowArticle Translations
|





















Back to the top