|
上传ACTION里所有的。
Action()
{
web_url("upload1.jsp",
"URL=http://www.msnshow.cn/flvlib/file/test/upload1.jsp",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_reg_save_param("Url",
"LB/IC=www.msnshow.cn\/flvlib\/file\/transaction\/process\/",
"RB/IC=\"",
"Ord=1",
"Search=Body",
"RelFrameId=1",
LAST);
web_submit_data("create",
"Action=http://www.msnshow.cn/flvlib/file/transaction/create/",
"Method=POST",
"RecContentType=text/html",
"Referer=http://www.msnshow.cn/flvlib/file/test/upload1.jsp",
"Snapshot=t2.inf",
"Mode=HTTP",
ITEMDATA,
"Name=title", "Value=ret1", ENDITEM,
"Name=description", "Value=ete", ENDITEM,
"Name=channelId", "Value=1", ENDITEM,
"Name=tag", "Value=rtet", ENDITEM,
"Name=source", "Value=1", ENDITEM,
"Name=addWatermark", "Value=false", ENDITEM,
"Name=nameRule", "Value=true_name", ENDITEM,
"Name=authorId", "Value=1", ENDITEM,
"Name=authorName", "Value=Patrick", ENDITEM,
"Name=appName", "Value=someVideoApp", ENDITEM,
"Name=originalUrl", "Value=http://www.msnshow.cn", ENDITEM,
"Name=otherParams", "Value=", ENDITEM,
"Name=appHandlerUrl", "Value=http://www.msnshow.cn/flvlib/file/test/readFlvInfo.jsp", ENDITEM,
"Name=flvWidth", "Value=320", ENDITEM,
"Name=flvHeight", "Value=240", ENDITEM,
"Name=thumbCaptureTime", "Value=5", ENDITEM,
LAST);
lr_think_time(1);
web_url("upload3.swf",
"URL=http://www.msnshow.cn/flvlib/file/test/upload3.swf",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://www.msnshow.cn/flvlib/file/test/upload2.jsp?tid={Url}&createTime=20071221161528&appHandlerUrl=http%3A%2F%2F192.168.10.119%3A8080%2",
"Snapshot=t3.inf",
LAST);
lr_think_time(5);
web_submit_data("Attachments",
"Action=http://www.msnshow.cn/flvlib/file/uploadvideo/{Url}",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/html",
"Referer=",
"Snapshot=t5.inf",
"Mode=HTML",
ITEMDATA, "Name=userFile0",
"Value=C:\\Documents and Settings\\MI_Viewer\\桌面\\119424054178.flv",
"File=yes",
"ContentType=text/html", // 覆盖了文本文件默认的“text/plain” 值。
ENDITEM,
LAST);
web_url("450_2",
"URL=http://www.msnshow.cn/flvlib/file/transaction/process/{Url}",
"Resource=0",
"Referer=http://www.msnshow.cn/flvlib/file/test/upload3.swf",
"Snapshot=t5.inf",
"Mode=HTTP",
LAST);
web_url("450_3",
"URL=http://www.msnshow.cn/flvlib/file/transaction/status/{Url}?tm=Fri%20Dec%2021%2016:18:49%20GMT+0800%202007",
"Resource=0",
"Referer=http://www.msnshow.cn/flvlib/file/test/upload3.swf",
"Snapshot=t6.inf",
"Mode=HTTP",
LAST);
lr_think_time(2);
web_url("450_4",
"URL=http://www.msnshow.cn/flvlib/file/transaction/status/{Url}?tm=Fri%20Dec%2021%2016:18:51%20GMT+0800%202007",
"Resource=0",
"Referer=http://www.msnshow.cn/flvlib/file/test/upload3.swf",
"Snapshot=t7.inf",
"Mode=HTTP",
LAST);
web_submit_data("readFlvInfo.jsp",
"Action=http://www.msnshow.cn/flvlib/file/test/readFlvInfo.jsp",
"Method=POST",
"RecContentType=text/html",
"Referer=http://www.msnshow.cn/flvlib/file/test/upload2.jsp?tid={Url}&createTime=20071221161528&appHandlerUrl=http%3A%2F%2F192.168.10.119%3A8080%2Fflvlib%2Ffile%2Ftest%2FreadFlvInfo.jsp&channelId=1&otherParams=",
"Snapshot=t8.inf",
"Mode=HTTP",
ITEMDATA,
"Name=tid", "Value={Url}", ENDITEM,
"Name=createTime", "Value=20071221161528", ENDITEM,
"Name=channelId", "Value=1", ENDITEM,
"Name=otherParams", "Value=", ENDITEM,
LAST);
return 0; |
|