Repository 'curl_post'
hg clone https://toolshed.g2.bx.psu.edu/repos/imgteam/curl_post

Changeset 0:7f9434fc9d4c (2019-02-09)
Commit message:
planemo upload for repository https://github.com/BMCV/galaxy-image-analysis/tools/curl_post commit c3f4b766f03770f094fda6bda0a5882c0ebd4581
added:
curl_post.xml
test-data/curl.txt
test-data/sample_seg.tif
b
diff -r 000000000000 -r 7f9434fc9d4c curl_post.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/curl_post.xml Sat Feb 09 14:34:54 2019 -0500
[
@@ -0,0 +1,29 @@
+<tool id="curl_post" name="cURL" version="0.0.2">
+    <description>send cURL POST requests</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" 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>
+    **What it does**
+
+    Uses cURL to send a file via POST.
+    </help>
+    <citations>
+        <citation type="doi">10.7717/peerj.453</citation>
+    </citations>
+</tool>
b
diff -r 000000000000 -r 7f9434fc9d4c test-data/curl.txt
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/curl.txt Sat Feb 09 14:34:54 2019 -0500
b
@@ -0,0 +1,7 @@
+<html>
+<head><title>405 Not Allowed</title></head>
+<body bgcolor="white">
+<center><h1>405 Not Allowed</h1></center>
+<hr><center>nginx/1.4.6 (Ubuntu)</center>
+</body>
+</html>
b
diff -r 000000000000 -r 7f9434fc9d4c test-data/sample_seg.tif
b
Binary file test-data/sample_seg.tif has changed