Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove etc.c.curl (and std.net.curl) #10218

Open
dlangBugzillaToGithub opened this issue Dec 22, 2016 · 0 comments
Open

remove etc.c.curl (and std.net.curl) #10218

dlangBugzillaToGithub opened this issue Dec 22, 2016 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

greeenify reported this on 2016-12-22T16:49:10Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=17009

Description

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/
@thewilsonator thewilsonator removed OS:Linux Issues specific to Linux Arch:x86_64 Issues specific to x86_64 P4 labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants