如何自动提交html的形式,随机的文本价值观使用vbscript?

有帮助吗?

解决方案

可以使用“Microsoft.XMLHTTP”自动执行表单提交。请参考下面:

Set xml = Server.CreateObject("Microsoft.XMLHTTP")

' Notice the two changes in the next two lines:
xml.Open "POST", "http://www.imdb.com/Find", False
xml.Send "select=All&for=The Usual Suspects"

wscript.echo xml.responseText

或者看看这些伟大的帖子:

http://www.4guysfromrolla.com/webtech/110100-1.2.shtml

http://www.4guysfromrolla.com/webtech/110100-1.shtml

http://support.microsoft.com/kb/290591

其他提示

你可能想要使用硒(http://seleniumhq.org/)或Waitr(http://wtr.rubyforge.org/),因为他们会让你更好的控制,并建立以做什么,你是在寻找。

<html>
    <form action='http://127.0.0.1/file.php' method='POST' id=1>
        <input type=hidden name="var" value="val">
        <input type=submit>
    </form>
</html>
<script>
    document.getElementById(1).submit();
</script>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top