Please try the following code:
Definitions
.......
CHARACTER*512 USERNAME ( "username1" ), SCRIPT
CHARACTER*512 PASSWORD ( "userpassword1" ), SCRIPT
CHARACTER*512 MY_USERNAME , LOCAL
CHARACTER*512 MY_PASSWORD , LOCAL
Code
........
ACQUIRE MUTEX "LOGIN_TEST", ON ERROR GOTO ERR_LABEL
NEXT USERNAME
NEXT PASSWORD
Set MY_USERNAME = USERNAME
Set MY_PASSWORD = PASSWORD
RELEASE MUTEX "LOGIN_TEST"
! primary post uri part
,BODY "userName=" + MY_USERNAME + "&passWord=" + MY_PASSWORD
+ &
"&bnSubmit=Submit&token=1068607481927"
Cheers,
Tracey
>From: Effie Sharma <Effie.Sharma@...>
>Reply-To: opensta-users@...
>To: opensta-users@...
>Subject: [OpenSTA-users] using value list type variables in "primary post
>uri"
>Date: Fri, 14 Nov 2003 10:03:32 +1100
>
>Dear OpenSTA group,
>
>The following problem I believe is extremely easy for those of you who
>have some experience. The error occurs when running the script, and is:
>
>TModeller_Web.exe|2424|1-1|STUDENQ5|274|E* ERROR: FAILED PROCESSING TOF
>RECORD FOR SCRIPT LINE 274: CECListVar::get_value
>!Script Execution Failed.
>
>The code used is:
>
>! variable assignment part
> CHARACTER*512 MY_USERNAME ( "username1" ), SCRIPT
> CHARACTER*512 MY_PASSWORD ( "userpassword1" ), SCRIPT
>
>! primary post uri part
>,BODY "userName=" + MY_USERNAME + "&passWord=" + MY_PASSWORD +
>"&bnSubmit=Submit&token=1068607481927"
>
>The code was based on some code found in the documentation, but
>obviously something is still missing?
>
>Any assistance would be greatly appreciated.
>
>Cheers
>Effie
>
>
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: ApacheCon 2003,
>16-19 November in Las Vegas. Learn firsthand the latest
>developments in Apache, PHP, Perl, XML, Java, MySQL,
>WebDAV, and more! http://www.apachecon.com/
>--
>OpenSTA-users mailing list OpenSTA-users@...
>https://lists.sourceforge.net/lists/listinfo/opensta-users
_________________________________________________________________
Surf the net and talk on the phone with Xtra Jetstream @
http://www.xtra.co.nz/products/0,,5803,00.html !
|