문제
자동화하는 방법을 제출하는 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://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>
제휴하지 않습니다 StackOverflow