Hello
I am trying to upload a pdf file with curl command:
curl -u myUser:myPassword -H ‘Content-Type: application/pdf’ -T ‘report_96.pdf’ ‘https://cloud.oseom-finance.fr/remote.php/dav/files/myUser/OSEOM_FINANCE/IBRM/Reddition_comptes/Rapports/’
but it gives an error:
<?xml version="1.0" encoding="utf-8"?><d:error xmlns:d=“DAV:” xmlns:s=“sabre/dav”>
<s:exception>Internal Server Error</s:exception>
<s:message>
The server was unable to complete your request. If this happens again, please send the technical details below to the server administrator. More details can be found in the server log. </s:message>
<s:technical-details>
<s:remote-address>81.13.198.36</s:remote-address>
<s:request-id>KjRYsUADGVQpf1t5x6I6</s:request-id>
</s:technical-details>
</d:error>
Uploading from a browser works fine.
Downloading files also works, for example:
curl -u myUser:myPassword -O ‘https://cloud.oseom-finance.fr/remote.php/dav/files/myUser/OSEOM_FINANCE/IBRM/Reddition_comptes/Rapports/Acte Cession.pdf’
What can be wrong with my curl upload? I tried PUT, POST and -H ‘X-Requested-With: XMLHttpRequest’ but get the same error.
Barbara