Issue 17009 - remove etc.c.curl (and std.net.curl)
Summary: remove etc.c.curl (and std.net.curl)
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-22 16:49 UTC by Seb
Modified: 2024-12-01 16:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Seb 2016-12-22 16:49:10 UTC
At least DConf it was announced that the plan is to remove etc.c.curl (in fact entire etc).

With the "high-level" API there are many issues as well:

- no response object (it's impossible to access the response for e.g. the error code or other attributes, only via low-level)
- no simple support for custom header attributes
- no support to build query parameters
- no simple support for custom request parameter
- just throws CurlException (no fine-grained control of exceptions)
- post: no support for user-specified file type, no support for File or stream)
- no simple support for basic auth (only via low-level)
- no high-level support for streams (only ranges)

(I am pretty sure this list is longer)

and btw support of SSL is mandatory in 2016.
In general dlang-requests looks to be a very promising replacement (it does support linking with SSL or botan too):

https://github.com/ikod/dlang-requests

It's modeled after the successful Python module requests:

http://docs.python-requests.org/en/master/
Comment 1 dlangBugzillaToGithub 2024-12-01 16:28:41 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10218

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB