digitalmars.D.learn - std.net.curl.get failing to resolve google.com
- Jakob Ovrum (46/46) Apr 21 2015 test.d
test.d --- void main() { import std.net.curl; import std.stdio; writeln(get("http://google.com")); } --- rdmd -g test.d --- std.net.curl.CurlException std\net\curl.d(3691): couldn't resolve host name on handle 26B4878 ---------------- 0x0040572A in pure safe void std.exception.bailOut!(std.net.curl.CurlException).bailOut(immutable(char)[], uint, const(char[])) at d:\Programming\D\dmd.2.067.0.windows\dmd2\windows\bin\..\..\src\phobos\std\exception.d(400) 0x004056D2 in pure safe bool std.exception.enforce!(std.net.curl.CurlException, bool).enforce(bool, lazy const(char)[], immutable(char)[], uint) at d:\Programming\D\dmd.2.067.0.windows\dmd2\windows\bin\..\..\src\phobos\std\exception.d(352) 0x00431356 in void std.net.curl.Curl._check(int) 0x004064F6 in char[] std.net.curl.get!(std.net.curl.HTTP, char).get(const(char)[], std.net.curl.HTTP) at d:\Programming\D\dmd.2.067.0.windows\dmd2\windows\bin\..\..\src\phobos\std\net\curl.d(405) 0x004020A4 in char[] std.net.curl.get!(std.net.curl.AutoProtocol, char).get(const(char)[], std.net.curl.AutoProtocol) at d:\Programming\D\dmd.2.067.0.windows\dmd2\windows\bin\..\..\src\phobos\std\net\curl.d(419) 0x0040202A in _Dmain 0x00423C0A in D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv 0x00423BDF in void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll() 0x00423AF7 in _d_run_main 0x004237A0 in main 0x0046E025 in mainCRTStartup 0x76D0338A in BaseThreadInitThunk 0x77269F72 in RtlInitializeExceptionChain 0x77269F45 in RtlInitializeExceptionChain --- Using DMD32 D Compiler v2.067.0 (release version) on Windows. google.com resolves fine when using ping or a browser, so what could be causing this? It happens with every other host name I've tried, too.
Apr 21 2015