Mercurial > repos > thomaswollmann > curl_post
changeset 0:9e9a41b6c153 draft
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/curl_post commit 42d972afdd700fccae1017c06efbfd06b9c96791
author | thomaswollmann |
---|---|
date | Mon, 07 Jan 2019 08:37:19 -0500 |
parents | |
children | 9e285fe716f9 |
files | curl_post.xml test-data/curl.txt test-data/sample_seg.tif |
diffstat | 3 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/curl_post.xml Mon Jan 07 08:37:19 2019 -0500 @@ -0,0 +1,26 @@ +<?xml version="1.0"?> +<tool name="cURL POST" id="curl_post" version="0.0.2"> + <description>send cURL POST</description> + <requirements> + <requirement type="package" version="7.62.0">curl</requirement> + </requirements> + <command><![CDATA[curl -X POST -s '$url' --data-binary '$input' > '$output' ]]></command> + <inputs> + <param name="url" size="30" type="text" value="" label="URL"/> + <param name="input" type="data" format="data" label="Source file"/> + </inputs> + <outputs> + <data name="output" format="txt" /> + </outputs> + <tests> + <test> + <param name="input" value="sample_seg.tif"/> + <param name="url" value="https://galaxyproject.org"/><!--what url can be used here?--> + <output name="output" value="curl.txt" ftype="txt"/> + </test> + </tests> + <help>Uses cURL to send a file via POST.</help> + <citations> + <citation type="doi">10.7717/peerj.453</citation> + </citations> +</tool>