Skip to content

Instantly share code, notes, and snippets.

@stigfaerch
Last active August 3, 2018 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stigfaerch/8756668fbfbfa4d3c29be8f12ef6b9c7 to your computer and use it in GitHub Desktop.
Save stigfaerch/8756668fbfbfa4d3c29be8f12ef6b9c7 to your computer and use it in GitHub Desktop.
Box.com DAV - curl - create folder, upload/download file
#create folder
curl -u me@email.com:mypassword -X MKCOL "https://dav.box.com/dav/remote_foldername"
#upload
curl -u me@email.com:mypassword -T local_file_path https://dav.box.com/dav/remote_file_name
#download
curl -u me@email.com:mypassword https://dav.box.com/dav/remote_file_name --output download_file_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment