I have to upload files from linux box to SharePoint Online. I have used following command:
curl -k -ntlm --user myusername:password --upload-file test.txt "https://url/test.txt" -v
But I get error:
wget command works perfectly to download files.
wget --cookies=on --load-cookies cookies.txt --keep-session-cookies --user myusername --password mypassword "https://url/test.txt"
Is there a way to make it work?