curl-library
Re: Command line switch to force overwrite
Date: Mon, 1 Feb 2016 17:17:06 +0100
Andrew Williams wrote:
> Running the script again though shows no overwrite.
How do you conclude that? What do you mean by "show" and
how long is it before you run the script again? I guess
server-caching is creating troubles for you here.
> I can't find a force overwrite switch.
>
> Current put
>
> curl.exe -H "Authorization: Bearer <TOKEN remove for security>"
> https://api-content.dropbox.com/1/files_put/auto/Audit_Report_Upload/ -T "C:\DATA\Network_Audit.xlsx"
A curl upload works fine here (on Win-10), so I think it's a problem at your
or the DropBox end.
Does DropBox per chance use Apache servers? In such case,
I've seen it can help to add this to your .htaccess file:
Header add "disablevcache" "true"
(I have that in my server's root-dir).
But if it happens with FTP too (as you said), the above won't help.
Also check this out:
http://stackoverflow.com/questions/18731794/how-to-disable-nginx-cache
since maybe DropBox is using NGinx servers.
-- --gv ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2016-02-01