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 --> <http-request url="http://example.com/foo"/> <http-request url="http://example.org/restricted" dir="./"> <!-- This proxy will be used instead of the default one --> <config name="proxy" value="http://foo:bar@proxy.example.org:3128/"/> </http-request>