davidlee42knicks
Programmer
Hi, now I'm looking for advice on using the PostData parameter. Here is my code:
Dim URL As String
Dim Flags As Long
Dim TargetFrame As String
Dim PostData() As Byte
Dim Headers As String
Dim Argument As String
Dim getURL As Variant
getURL = DLookup("url", "tracker_tbl_pages", "id = " & txtPage.Value & " ")
URL = CStr(getURL)
Flags = 0
TargetFrame = ""
PostData = "username=mhfour" & "password=mhfour"
PostData = StrConv(PostData, vbFromUnicode)
Headers = "Content-Type: application/x- & vbCrLf
Form_Execute_Test_Run.WebBrowser9.Navigate URL, Flags, TargetFrame, PostData, Headers
I'm not populating the PostData parameter properly. I am trying to pass these parameters and login into a web page (on my server) that allows the Post method. I need to pass a username and password. I do not understand what is wrong here, but I'm sure it lies in the PostData parameter. Please help.
Thanks,
Mike
Dim URL As String
Dim Flags As Long
Dim TargetFrame As String
Dim PostData() As Byte
Dim Headers As String
Dim Argument As String
Dim getURL As Variant
getURL = DLookup("url", "tracker_tbl_pages", "id = " & txtPage.Value & " ")
URL = CStr(getURL)
Flags = 0
TargetFrame = ""
PostData = "username=mhfour" & "password=mhfour"
PostData = StrConv(PostData, vbFromUnicode)
Headers = "Content-Type: application/x- & vbCrLf
Form_Execute_Test_Run.WebBrowser9.Navigate URL, Flags, TargetFrame, PostData, Headers
I'm not populating the PostData parameter properly. I am trying to pass these parameters and login into a web page (on my server) that allows the Post method. I need to pass a username and password. I do not understand what is wrong here, but I'm sure it lies in the PostData parameter. Please help.
Thanks,
Mike