Missing FUNC parameter when runing a job (cgi-lawson/jobrun.exe) via AGS Call

 0 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
dd3mp
New Member Send Private Message
Posts: 1
New Member
Hi, I have the below set of codes in VB6 to submit a Lawson job via AGS call and I'm getting a "Missing FUNC parameter" error after the SEND command. The command runs successfully if entered in IE. Any ideas? Thanks. Code: Dim MyHttpRequest As New WinHttpRequest strHttpPR134_Run = "https:///cgi-lawson/jobrun.exe?FUNC=RUN&USER=dannyp&JOB=PR134-POS&OUT=XML"

MyHttpRequest.Open "POST", strHttpPR134_Run, False

MyHttpRequest.Send ---------o------ Here's the result if strHttpPR134_Run command entered in IE: 'works if entered in IE '        '        - '          dannyp '          '          PR134-POS '          0000002837 '          Job Has Been Submitted '