title: cURL: from PHP to BASH
body: <p>I've never done any curl before so am in need of some help.</p>
  
  <p>php: </p>
  
  <pre><code>&lt;?php
  $ch = curl_init();
  
  $data = array(
          'uptype'=&gt;'file',
          'file'=&gt;'@'.$argv[1],
  );
  
  curl_setopt($ch, CURLOPT_URL, 'http://my_site_ex/up.php');
  curl_setopt($ch, CURLOPT_POST, 1);
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  
  curl_exec($ch);
  curl_close($ch);
  ?&gt;
  </code></pre>
  
  <p>how to make the same script in BASH? </p>