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; 谁能评价一下,这个脚本精典在哪儿? 纳闷,这个有什么特别的?? 比如我一下子要压十个用户,不一定都上传同一个文件,那怎么对那个文件路径参数化? kankan xuexi 谢谢,谢谢!
好,很好,非常好! thanks:victory:
???
:)的
点点滴滴 很有实用价值噢 谢谢版主! 好东西,顶个 谢谢回复 1# 的帖子
下了,没看懂,再研究研究回复 126# 的帖子
把Value=C:\\Documents and Settings\\MI_Viewer\\桌面\\119424054178.flv参数化就行了,C:\\Documents and Settings\\MI_Viewer\\桌面\\119424054178.flv 替换为参数
thank you
先顶,以后再看 感谢分享主要是做了关联吗