Tag Archives: curl

curl without password in command line

https://stackoverflow.com/questions/20803339/basic-authorization-command-for-curl Another way is to get Base64 encoded token of “username:password” from any online website like – https://www.base64encode.org/ and pass it as Authorization header of curl as follows: Here, dXNlcm5hbWU6cGFzc3dvcmQ= is Base64 encoded token of username:password.

Save file to your Nextcloud from bash

Sometimes you need to upload from command line to you Nextcloud storage. You can do it with a simple curl command. At first you have to create a shared directory in your Nextcloud with “Allow upload and editing” share option. You will get a share link for example: https://nextcloud.myserver.com/index.php/s/gz8BS7mtxGbwkQB The string “gz8BS7mtxGbwkQB” will be used… Read More »