cURL / Mailing Lists / curl-library / Single Mail


Command line switch to force overwrite

From: Andrew Williams <>
Date: Mon, 1 Feb 2016 16:21:59 +1100

I've been having great success with this application both in developing
custom applications and just using the command line.

I'm having trouble with the command line operation.

For testing I'm uploading to DropBox and it's working for the first run.
eg Empty directory on DropBox is populated with new files uploaded with

Running the script again though shows no overwrite.

This also occurs under normal FTP.

My question, is there some intelligence in curl that works out if the
file being uploaded and the target directory file are the same then no
upload or is there a switch that FORCES overwrite?

My reading of the man page seems to imply overwrite UNLESS a switch is
used to eg. append -a.

I can't find a force overwrite switch.

Current put

curl.exe -H "Authorization: Bearer <TOKEN remove for security>" -T

Any guidance appreciated.

List admin:
Received on 2016-02-01