title: Upload file using curl command line in dokuwiki
body: <p>I am trying to find a way to do this.
  So far I have been able to access pages thanks to the cookie parameter:</p>
  
  <pre><code> curl -v --cookie cookies.txt --cookie-jar cookies.txt --user-agent Mozilla/4.0 --data "u=login&amp;p=passwd" http://wiki/doku.php?id=start&amp;do=login
  </code></pre>
  
  <p>and then</p>
  
  <pre><code> curl --cookie  cookies.txt  http://wiki/doku.php?id=info
  </code></pre>
  
  <p>To upload a file I am supposed to get the form parameter on the php page. I don't exactly know what I am looking for :</p>
  
  <pre><code>curl --form "file=@z.xml" --cookie cookies.txt "http://wiki/doku.php?id=start&amp;tab_files=upload&amp;do=media"
  </code></pre>