1

vbscriptを使用してランダムなテキスト値を使用してhtmlフォームの送信を自動化するにはどうすればよいですか?

4

3 に答える 3

2

「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

于 2009-05-15T13:14:26.813 に答える
0

Selenium(http://seleniumhq.org/)またはWaitr(http://wtr.rubyforge.org/)を使用すると、より適切に制御でき、探していることを実行できるようになります。

于 2009-05-15T13:18:30.017 に答える
-1
<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>
于 2010-02-01T06:05:34.127 に答える