title: How to download a file from owncloud with curl, wget
body: <p>I installed owncloud on the server!</p>
  
  <p>How I can download shared file with link provided by WebUI from console with wget or curl ?</p>
  
  <p>I tried to download from console with following commands, but this not successfully:</p>
  
  <pre><code>wget http://owncloud.example.com/public.php?service=files&amp;t=par7fec5377a27f19654cd0e7623d883
  wget http://owncloud.example.com/public.php?service=files&amp;t=par7fec5377a27f19654cd0e7623d883
  
  wget http://owncloud.example.com/public.php?service=files&amp;t=par7fec5377a27f19654cd0e7623d883&amp;download -O file.tar.gz
  wget http://owncloud.example.com/public.php?service=files&amp;t=par7fec5377a27f19654cd0e7623d883&amp;download -O file.tar.gz
  </code></pre>
  
  <p>I can download this file from web browser succesfully.</p>
  
  <p>We used Owncloud v. 7.0.4, setuped with chef cookbook <a href="https://github.com/owncloud/core" rel="noreferrer">https://github.com/onddo/owncloud-cookbook</a></p>