title: upload android local file to remote webserver using curl
body: <p>I'm trying to upload a file from my android device using curl. The file is located at</p>
  
  <blockquote>
    <p>/sdcard/Download/fileToUpload.txt</p>
  </blockquote>
  
  <p>Below is the command I use through <a href="https://play.google.com/store/apps/details?id=jackpal.androidterm&amp;hl=en_us" rel="nofollow noreferrer">Terminal</a> application:-</p>
  
  <pre><code>curl -i -X POST -H "Content-Type: multipart/form-data" \            
                  -F "content=@/sdcard/Download/fileToUpload.txt" \
                   http://192.168.1.104/android/upload.php
  </code></pre>
  
  <p>I have tested the same command which worked fine from desktop. 
  I'm banging my head from past few hours. Please let me know what is wrong.</p>
  
  <blockquote>
    <p><em>P.S: I'm worried where this question would be a stupid one.</em></p>
    
    <p>edit:- I don't want to root my device. As this would be my last option.</p>
  </blockquote>