I am trying to find a way to do this. So far I have been able to access pages thanks to the cookie parameter:
curl -v --cookie cookies.txt --cookie-jar cookies.txt --user-agent Mozilla/4.0 --data "u=login&p=passwd" http://wiki/doku.php?id=start&do=login
and then
curl --cookie cookies.txt http://wiki/doku.php?id=info
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 :
curl --form "file=@z.xml" --cookie cookies.txt "http://wiki/doku.php?id=start&tab_files=upload&do=media"
I made it work differently. I have created a upload.php file (source)
And the curl command (source)
To finish I have allowed a few hosts in
httpd.conf