|
由于数据内容为加密,通过调用开发的加密算法编的dll作为BodyBinary的内容。
但现在遇到一个棘手的问题,加密之后dll返回的数据类型为unsigned char *,那我需要怎么处理而使loadrunner能正常地POST预期数据包 ???
代码如下:
unsigned char *strDLL = (unsigned char *)DLL_lr_Test("LR_Test",111111);
char strDate[4096];
memset(strDate,'\0',4096);
memcpy(strDate,strDLL,strlen((unsigned char *)DLL_lr_Test("LR_Test",111111)));
lr_log_message("%s",strDate);
lr_save_string(strDate,"strDate");
web_custom_request("appASA",
"URL=http://172.17.10.184:8080/handlers/appASA",
"Method=POST",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
"EncType=",
"BodyBinary={strDate}",
LAST); |
|