antology 2.0.7
Task

<urlConnection>

Connects to a resource, writes data to it and/or reads data from it.

To configure HTTP authentication, use the <setAuthenticator> task.

The following attributes are mutually exclusive:

httpChunkLength="..."
httpContentLength="..."

Also the following attributes and subelements are mutually exclusive:

url="..."
<url>

Also the following attributes are mutually exclusive:

direct="..."
httpProxy="..."
socksProxy="..."

To debug HTTP communication, you may want to execute the following before the <urlConnection> task:

 <!-- Configure super-verbose logging on the HTTP connection. -->
 <logging>
     <logger name="sun.net.www.protocol.http.HttpURLConnection" level="FINEST">
         <handler className="java.util.logging.ConsoleHandler">
             <attribute name="level" value="FINEST" />
         </handler>
     </logger>
 </logging>
antology 2.0.7

Copyright © 2019. All rights reserved.