I'm running the project using this command:
rclone rcd --rc-web-gui --rc-user admin --rc-pass admin --rc-serve --rc-addr 0.0.0.0:5572
Now I wrote a simple SDK to call Apis like config/create
or operations/uploadfile
.
How can I give parameters like contimeout
or timeout
to apis calls? already tried to pass it through URL parameters and form-data but does not work.
sample curl:
curl -X POST \
-u "admin:admin" \
-d "fs=test:hamid-bucket" \
-d "remote=" \
-d "timeout=2s" "http://localhost:5572/operations/list"