Download then upload a file in PHP
<p>I need to download a file using PHP and then after that upload the downloaded file to the user.</p>

<p>e.g. </p>

<ol>
<li><p>Download file from test.com/test.zip </p></li>
<li><p>Either cache the file to disk or stream Immediately to the user.</p></li>
</ol>

<p>If possible how can i do this using curl or how can i do this using normal PHP (no extra libs)</p>
