curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

uploading a file

From: mehran j via curl-users <curl-users_at_cool.haxx.se>
Date: Fri, 25 Sep 2020 12:17:39 +0000 (UTC)

Hi,
Can you help please to the following query?
I am trying to upload file using curl onto WebDav directory. The file is a csv file created every day. then the file will stamp with todays date at the end of it before upload, The CURL command is a part of Linux cron job which will run on daily bases to create and then transfer each days new csv file onto a WebDav directory..
I am able to upload the file when the file date is set to be like 20200925 at the end of file name.curl --user user:password -T '/user/directory1/test_20200925.csv' 'https://web_cloud.com/directory1/directory2/
but I can not upload the file trying the following 
curl --user user:password -T '/user/directory1/test_*.csv' 'https://web_cloud.com/directory1/directory2/
orcurl --user user:password -T '/user/directory1/test_$a.csv' 'https://web_cloud.com/directory1/directory2/

where a is set to be a data variable on this job.
I appreciate any help on this.
Regards,
Mehran

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-09-25