Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the PostData parameter

Status
Not open for further replies.

davidlee42knicks

Programmer
Jul 25, 2007
12
0
0
US
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
 
Perhaps this ?
PostData = "username=mhfour&password=mhfour"


Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top