http - How can i visit a webpage with ant? -
Ant task will download an http request received
How do I go to a webpage and the current logger How can I react to it, and according to the reaction maybe I can make some decisions?
Edit in advance
Edit:
This has worked:
& lt; Target name = "parent" & gt; & Lt; Exec Executable = "Curl" OutputProperty = "Web Process" ErrorPrint = "Error" & gt; & Lt; Arg line = "http: //web/web.php" /> & Lt; / Executive & gt; & Lt; Echo message = "$ {web process}" /> & Lt; Condition property = "isOk" & gt; & Lt; Equal arg1 = "fine" arg2 = "$ {webProcess}" /> & Lt; / Condition & gt; & Lt; Echo message = "$ {iok}" /> & Lt; Antcall target = "doStuffIfOk" /> & Lt; / Target & gt;
I believe that you & lt; Exec & gt;
To get this kind of functionality, external program like curl
or wget
& mdash; Ant Obtain
The task seems to handle just downloading the original file.
Comments
Post a Comment