digitalmars.D.learn - Downloading Files in D
- =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= (8/8) Sep 10 2014 What's the recommended way to to download files (typically over
- Adam D. Ruppe (6/6) Sep 10 2014 The curl one should be easiest for just downloading files. The
- =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= (3/9) Sep 11 2014 Ok, thanks.
- Jacob Carlborg (9/11) Sep 11 2014 If you don't want to worry about dependencies on libcurl you can use
- =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= (4/7) Sep 11 2014 Ok, thanks. And I guess vibe.d can do this aswell without
- Danyal Zia (2/4) Sep 11 2014 I'm also interested to know how this can be done with vibe.d...
- Rene Zwanenburg (5/12) Sep 11 2014 Didn't test but I found this:
What's the recommended way to to download files (typically over http(s) or ftp) from within D? Should I use http://dlang.org/phobos/std_net_curl.html or vibed.org ? I'm asking because I've read somewhere that there have been complaints about the curl wrapper.
Sep 10 2014
The curl one should be easiest for just downloading files. The big problems with it are that it can be a pain to get the library working with versioning and stuff and that it sometimes does the wrong thing in advanced use cases. But if the curl library works for you at all, doing downloading with it is easy.
Sep 10 2014
On Wednesday, 10 September 2014 at 22:23:11 UTC, Adam D. Ruppe wrote:The curl one should be easiest for just downloading files. The big problems with it are that it can be a pain to get the library working with versioning and stuff and that it sometimes does the wrong thing in advanced use cases. But if the curl library works for you at all, doing downloading with it is easy.Ok, thanks.
Sep 11 2014
On 11/09/14 00:05, "Nordlöw" wrote:I'm asking because I've read somewhere that there have been complaints about the curl wrapper.If you don't want to worry about dependencies on libcurl you can use Tango [1] [2]. You can see how I use Tango to download files in DVM [3] [1] https://github.com/SiegeLord/Tango-D2 [2] http://siegelord.github.io/Tango-D2/tango.net.http.HttpGet.html [3] https://github.com/jacob-carlborg/dvm/blob/master/dvm/commands/Fetch.d#L80 -- /Jacob Carlborg
Sep 11 2014
On Thursday, 11 September 2014 at 14:30:39 UTC, Jacob Carlborg wrote:If you don't want to worry about dependencies on libcurl you can use Tango [1] [2]. You can see how I use Tango to download files in DVM [3]Ok, thanks. And I guess vibe.d can do this aswell without external dependencies, right?
Sep 11 2014
On Thursday, 11 September 2014 at 17:37:24 UTC, Nordlöw wrote:Ok, thanks. And I guess vibe.d can do this aswell without external dependencies, right?I'm also interested to know how this can be done with vibe.d...
Sep 11 2014
On Thursday, 11 September 2014 at 17:37:24 UTC, Nordlöw wrote:On Thursday, 11 September 2014 at 14:30:39 UTC, Jacob Carlborg wrote:Didn't test but I found this: http://vibed.org/api/vibe.inet.urltransfer/download Vibe does by default depend on a few other libraries though. Libevent, OpenSSL, maybe others..If you don't want to worry about dependencies on libcurl you can use Tango [1] [2]. You can see how I use Tango to download files in DVM [3]Ok, thanks. And I guess vibe.d can do this aswell without external dependencies, right?
Sep 11 2014