Answer the question
In order to leave comments, you need to log in
How to download a file via curl (command line), automatically creating a directory?
How to download a file via curl (command line), automatically creating a directory?
For example: site.ru/dir/file.txt
You need to download this file by creating dir
This option
curl --raw --remote-name http://site.ru/dir/file.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question