Article ID: 174923
Article Last Modified on 8/18/2005
Navigates to the resource identified by a Universal Resource Locator (URL), or to the file identified by a full path.
object.Navigate URL [Flags,] [TargetFrameName,] [PostData,] [Headers]
Sub Command1_Click()
Dim URL As String
Dim Flags As Long
Dim TargetFrame As String
Dim PostData() As Byte
Dim Headers As String
URL = "http://YourServer" ' A URL that will accept a POST
Flags = 0
TargetFrame = ""
PostData = "Information sent to host"
' VB creates a Unicode string by default so we need to
' convert it back to Single byte character set.
PostData = StrConv(PostData, vbFromUnicode)
Headers = "Content-Type: application/x-www-form-urlencoded" & _
vbCrlf
WebBrowser1.Navigate URL, Flags, TargetFrame, PostData, Headers
End Sub
Additional query words: POST Navigate kbdsi kbDSupport kbVBp kbVBp500 kbVBp600 kbIndetDev400 kbIE300 kbIE301 kbIE302 kbIE400 kbIE401
Keywords: kbhowto KB174923