|
4#
楼主 |
发表于 2010-8-5 10:31:33
|
只看该作者
谢谢上楼的指点!
脚本运行到“打开页面”、“登录”等这些函数的时候,确实是停顿了
一下,问题是,如果响应不过来,脚本为什么还能往下运行呢?怎样才能解
决这个问题呢?
我没进行关联就能发帖,是不是因为我用了下面这个函数的原因呢?
web_submit_data("post.php",
"Action=http://bbs.51testing.com/post.php?action=newthread&fid=67&extra=page%3D1&topicsubmit=yes",
"Method=POST",
"EncType=multipart/form-data",
"TargetFrame=",
"RecContentType=text/html",
"Referer=http://bbs.51testing.com/post.php?action=newthread&fid=67&extra=page%3D1",
"Snapshot=t17.inf",
"Mode=HTML",
ITEMDATA,
"Name=formhash", "Value=10256a89", ENDITEM,
"Name=isblog", "Value=", ENDITEM,
"Name=frombbs", "Value=1", ENDITEM,
"Name=typeid", "Value=14", ENDITEM,
"Name=subject", "Value=测试练习", ENDITEM,
"Name=selecttypeid", "Value=14", ENDITEM,
"Name=emailnotify", "Value=1", ENDITEM,
"Name=message", "Value=测试练习", ENDITEM,
"Name=previewbutton", "Value=预览帖子", ENDITEM,
"Name=attach[]", "Value=", "File=Yes", ENDITEM,
"Name=localid[]", "Value=", ENDITEM,
"Name=attachdesc[]", "Value=", ENDITEM,
"Name=attach[]", "Value=", "File=Yes", ENDITEM,
"Name=localid[]", "Value=1", ENDITEM,
"Name=attachdesc[]", "Value=", ENDITEM,
"Name=iconid", "Value=0", ENDITEM,
"Name=wysiwyg", "Value=0", ENDITEM,
EXTRARES,
"Url=/images/default/forumlink.gif", "Referer=http://bbs.51testing.com/viewthread.php?tid=281110&extra=page%3D1&frombbs=1", ENDITEM,
"Url=/images/default/buddy_sendpm.gif", "Referer=http://bbs.51testing.com/viewthread.php?tid=281110&extra=page%3D1&frombbs=1", ENDITEM,
"Url=/images/default/user_online.gif", "Referer=http://bbs.51testing.com/viewthread.php?tid=281110&extra=page%3D1&frombbs=1", ENDITEM,
"Url=/images/default/user_add.gif", "Referer=http://bbs.51testing.com/viewthread.php?tid=281110&extra=page%3D1&frombbs=1", ENDITEM,
"Url=/images/default/ad_icon.gif", "Referer=http://bbs.51testing.com/viewthread.php?tid=281110&extra=page%3D1&frombbs=1", ENDITEM,
LAST);
谢谢指点啊。
另外,不同的错误码代表不同的错误类型是吧?不知道能不能将你们总结出来的错误码和对应的错误类型罗列出来呢,这样对我们这些新手来说会有很大的帮助,谢谢啊。有点馋,哈哈...... |
|