Ant任務GET將下載一個http請求。我如何訪問螞蟻的網頁?
我該如何訪問一個網頁,並向當前記錄器發出響應,並根據響應進行一些調整?
在此先感謝
編輯:
它的工作,如:
<target name="genera">
<exec executable="curl" outputproperty="webProcess" errorproperty="error">
<arg line="http://web/web.php"/>
</exec>
<echo message="${webProcess}" />
<condition property="isOk">
<equals arg1="OK" arg2="${webProcess}"/>
</condition>
<echo message="${isOk}" />
<antcall target="doStuffIfOk" />
</target>
謝謝,它與curl,exec和一些條件 – Cesar 2010-02-02 21:22:44