www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18318] New: std.net.curl.download silently ignores non-2xx

https://issues.dlang.org/show_bug.cgi?id=18318

          Issue ID: 18318
           Summary: std.net.curl.download silently ignores non-2xx http
                    statuses
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: code dawg.eu

cat > bug.d << CODE
import std.net.curl;

void main()
{
    // get("dlang.org/non-existent-foobar"); // throws HTTPStatusException 404
    download("dlang.org/non-existent-foobar", "tmp"); // silently writes 404
response, with no way to detect the error
}
CODE

dmd -run bug

--
Jan 27 2018