Bug 15066 – std.net.curl.get should support IPv6 addresses on Windows
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2015-09-16T01:10:00Z
Last change time
2015-10-15T16:49:30Z
Assigned to
nobody
Creator
luis
Comments
Comment #0 by luis — 2015-09-16T01:10:49Z
This works on OS X but not on Windows:
void main()
{
import std.net.curl;
// neither work (IPv6 addresses, no DNS needed):
get("http://[::1]:8080/");
get("http://[2a00:1450:4004:801::200e]/");
}
Error: "std.net.curl.CurlException@std\net\curl.d(3705): Couldn't resolve host name on handle 1D80048"
Comment #1 by electrolysis.jp+d — 2015-09-22T14:52:34Z
Yeah, a proper curl DLL with all the good features should be provided with DMD.
(In any case, I would argue that no curl version should mistake an IPv6 address for a host name, even if support for processing IPv6 requests is not included; the current behavior is really misleading)