Re: libcurl options for --create-dirs -O --output-dir

2021-06-08 Thread Daniel Stenberg via curl-library

On Tue, 8 Jun 2021, Anmol Mishra via curl-library wrote:

However, I cannot see the equivalent options inside libcurl. Is the 
--output-dir option only available in the curl CLI ?


Yes, since libcurl doesn't really save content to files/directories. It 
delivers the content to a callback.


--

 / daniel.haxx.se
 | Commercial curl support up to 24x7 is available!
 | Private help, bug fixes, support, ports, new features
 | https://www.wolfssl.com/contact/
---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

libcurl options for --create-dirs -O --output-dir

2021-06-08 Thread Anmol Mishra via curl-library
Daniel posted about the --output-dir option in curl 7.73 - 
https://daniel.haxx.se/blog/2020/09/10/store-the-curl-output-over-there/

However, I cannot see the equivalent options inside libcurl. Is the 
--output-dir option only available in the curl CLI ?
[https://daniel.haxx.se/blog/wp-content/uploads/2020/09/baskets-2028298_1280-672x372.jpg1zB]
store the curl output over there | 
daniel.haxx.se
tldr: --output-dir [directory] comes in curl 7.73.0 The curl options to store 
the contents of a URL into a local file, -o (--output) and -O (--remote-name) 
were part of curl 4.0, the first ever release, already in March 1998. Even 
though we often get to hear from users that they can’t remember which of the 
letter O’s to use, they’ve worked exactly the same for over twenty years.
daniel.haxx.se

---
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html