|
-
Nov 2nd, 1999, 11:30 AM
#1
Thread Starter
Member
The syntax for the .navigator method is
object.Navigate URL [Flags,] [TargetFrameName,] [PostData,] [Headers]
How do I use the [Headers] feel?
Do I stick in a "Pragma: no-cache"+vbcrlf+"Cache-Control: no-cache" or is there a special way to enter it?
-
Nov 2nd, 1999, 05:28 PM
#2
Addicted Member
Headers - optional value that specifies additional HTTP headers to send to the server. These headers are added to the default IE headers. The headers can specify things like the action required of the server, the type of data being passed to the server, or a status code. This parameter is ignored if URL is not an HTTP URL.
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) to get more details on HTTP Authentication process.
The format for Authorization header is as follow:
Authorization: Basic XXXXXXX
Where XXXXXX is Base64 encoded string: "UserName:UserPassword." Base64 is described in RFC1113 and some public domain utilities for Base64 decoding/encoding are available.
WebBrowser1.Navigate URL:= "http://www.microsoft.com", Headers:= "Authorization: Basic XXXXXX" & vbCrLf
' Note: All headers must be terminated with a carriage return linefeed pair.
------------------
smalig
[email protected]
smalig.tripod.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|