How to post a file via HTTP PUT directly after fetching it via HTTP GET?
<p>I'm using Jenkins to do auto-deployment to Tomcat server. </p>

<p>I know how to do remote deployment via Tomcat manager. <a href="https://tomcat.apache.org/tomcat-7.0-doc/manager-howto.html#Deploy_A_New_Application_Archive_(WAR)_Remotely" rel="nofollow">enter link description here</a></p>

<p>I know how to fetch the war from Nexus by using curl. </p>

<p>I'm wondering if it is possible to use curl to achieve both actions in one command, maybe using pipes?</p>