문제

자동화하는 방법을 제출하는 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