|
功能实现:通过HTTP方式上传一个Tif图片文件到服务器。
求助:web_custom_request 这个函数在实现文件上传时,是不是需要添加其它的属性? 请高手指点~
LR录制的脚本内容如下:
web_submit_data("createscan.do_11",
"Action=http://10.168.188.213:8080/ECIMC/jsp/action/fund/imagescan/createscan.do?action=submitScanFileInfo&SERVICE_STYLE=11&FILE_PKG_ID={FILE_PKG_ID}&SOURCE_FILE_NAME=C:%255CECIMC%255CCreateScan%255CScanFile%255CZJKH%255C2008-05-20%255C5.tif&FILE_TYPE=.tif&FILE_SIZE=90&FILE_PAGES=1&CRC_VALUE=&TITLE=&THEME=&KEY_WORD=&CREATER=&MODIFY_NO=&OPEN_MODE=&CREATE_DATE=&CREATE_TIME=&LAST_MOD_DATE=&LAST_MOD_TIME=&FILE_CHECK=&NOTE=&SOURCE_NO=19&redirectFlag=1",
"Method=POST",
"RecContentType=text/xml",
"Referer=http://10.168.188.213:8080/ECIMC/jsp/action/fund/imagescan/createscan.do?redirectFlag=1",
"Snapshot=t17.inf",
"Mode=HTML",
ITEMDATA,
LAST);
web_url("FileService",
"URL=http://10.168.188.213:8080/fileservice/servlet/FileService?randNum=41",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t18.inf",
"Mode=HTML",
LAST);
web_custom_request("FileService_2",
"URL=http://10.168.188.213:8080/fileservice/servlet/FileService",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t19.inf",
"Mode=HTML",
"EncType=",
body_variable_1, //上传的图片文件的 Body部分。BodyBinary=II*\x00 ……
LAST);()
[ 本帖最后由 5555 于 2008-5-23 14:20 编辑 ] |
|