Automatic form feed

How to automate submission of html form with random text values ​​using vbscript?

+1


a source to share


3 answers


You can use "Microsoft.XMLHTTP" to automate form submission. See below:

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

      

Or take a look at these great posts:



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

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

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

+2


a source


You can use Selenium ( http://seleniumhq.org/ ) or Waitr ( http://wtr.rubyforge.org/ ) as they give you better control and are built to do what you are looking for.



0


a source


<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>

      

-1


a source







All Articles