In addition to configuring a particular instance of HTTP_Request2
via
nested <config>
tags it is also possible to set default
configuration values for HttpGetTask
/ HttpRequestTask
by setting phing.http.*
properties.
<property name="phing.http.proxy" value="socks5://localhost:1080/"/> <!-- This request will go through the default proxy --> <httpget url="http://example.com/file.zip" dir="./"/> <httpget url="http://example.org/file.exe" dir="./"> <!-- This proxy will be used instead of the default one --> <config name="proxy" value="http://foo:bar@proxy.example.org:3128/"/> </httpget>