|
请看红色的部分,左右边界你自己来取,格式是这样的,把所有需要替换的,都手动替换掉,程序中红色的部分就是替换后的变量
web_reg_save_parm("Urlparm","LB=\"Url=","RB=\", \"Referer=",LAST);
web_submit_data("uploadFace.action",
"Action=http://127.0.0.1:**********",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://127.0.0.1:**********",
"Snapshot=t3.inf",
"Mode=HTML",
ITEMDATA,
"Name=face", "Value=E:\\LiJiaxin_300_400.jpg", "File=Yes", ENDITEM, //本地上传图片
"Name=x", "Value=50", ENDITEM,
"Name=y", "Value=3", ENDITEM,
EXTRARES,
"Url=../images/myproperty/leftkuang.gif", ENDITEM,
"Url=flash/bin/beforeFaceMain.swf", ENDITEM,
"Url=../images/myproperty/rightkuang.gif", ENDITEM,
//服务器动态返回值"Url=../face/UpFiles/12287933847501632815604.jpg"
"{Urlparm}", "Referer=http://**********", ENDITEM,
"Url=flash/bin/frame.swf", "Referer=http://127.0.0.1:**********", ENDITEM,
LAST);
lr_think_time(10);
web_submit_data("getEyePoint.action",
"Action=http://127.0.0.1:**********",
"Method=POST",
"RecContentType=text/html",
"Referer=http://127.0.0.1:**********",
"Snapshot=t4.inf",
"Mode=HTML",
ITEMDATA,
"Name=cutX", "Value=68", ENDITEM,
"Name=cutY", "Value=104", ENDITEM,
"Name=cutRotate", "Value=0", ENDITEM,
"Name=cutWidth", "Value=300", ENDITEM,
"Name=cutHeight", "Value=400", ENDITEM,
"Name=picUrl", "Value=face/UpFiles/12287933847501632815604.jpg", ENDITEM, //picUrl值是取上面服务器动态返回值Url
"Name=rate", "Value=0.55", ENDITEM,
EXTRARES,
"Url=flash/bin/drawEyePoint.swf", ENDITEM,
"Url=../images/myproperty/gjdrightkuang.gif", ENDITEM,
"Url=../cut/face/UpFiles/12287933847501632815604.jpg", "Referer=http://127.0.0.1:**********", ENDITEM,
LAST); |
|