diff options
| author | Arcadius Ahouansou <Arcadius.Ahouansou@aexp.com> | 2017-01-23 22:46:06 +0000 |
|---|---|---|
| committer | Arcadius Ahouansou <Arcadius.Ahouansou@aexp.com> | 2017-01-23 22:46:06 +0000 |
| commit | b83bdcebf0395250b3ae5e7e4af94ff1400493f0 (patch) | |
| tree | a7417b686d1f16d07c5fd28a26e03f9b16ce5c37 /manual | |
| parent | a92845215f55eb63f0ad911c1610eac4dfaf82b4 (diff) | |
| download | ant-b83bdcebf0395250b3ae5e7e4af94ff1400493f0.tar.gz | |
[AA] Bugzilla Bug 60628 - Ant Get Task To Accept Arbitrary Header
Diffstat (limited to 'manual')
| -rw-r--r-- | manual/Tasks/get.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/manual/Tasks/get.html b/manual/Tasks/get.html index a2c9b7e59..a6d89e9dd 100644 --- a/manual/Tasks/get.html +++ b/manual/Tasks/get.html @@ -170,6 +170,29 @@ plain text' authentication is used. This is only secure over an HTTPS link. name will be skipped. If the returned name is a relative path, it will be considered relative to the <em>dest</em> attribute.</p> +<h4>header</h4> +<p>Any arbitrary number of HTTP headers can be added to a request.<br/> + The attributes of a nested <pre><header/> </pre> node are as follow: +<p></p> + +<table width="60%" border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top"><b>Attribute</b></td> + <td valign="top"><b>Description</b></td> + <td align="center" valign="top"><b>Required</b></td> + </tr> + <tr> + <td valign="top">name</td> + <td valign="top">The name or key of this header.</td> + <td align="center" valign="top">Yes</td> + </tr> + <tr> + <td valign="top">value</td> + <td valign="top">The value to assign to the.</td> + <td align="center" valign="top">Yes</td> + </tr> +</table> + <h3>Examples</h3> <pre> <get src="http://ant.apache.org/" dest="help/index.html"/></pre> <p>Gets the index page of http://ant.apache.org/, and stores it in the file <code>help/index.html</code>.</p> @@ -234,6 +257,17 @@ the <a href="input.html">input task</a> to query for a password.</p> <url url="http://ant.apache.org/faq.html"/> </get> </pre> + +<p>With custom HTTP headers</p> +<pre> +<get src="http://ant.apache.org/index.html" dest="downloads"> + <header name="header1" value=="headerValue1" /> + <header name="header2" value=="headerValue2" /> + <header name="header3" value=="headerValue3" /> + +</get> +</pre> + <p>Gets the index and FAQ pages of http://ant.apache.org/, and stores them in the directory <code>downloads</code> which will be created if necessary.</p> |
