Bug introduced in 11.0 and persists through 11.3
The original problem is was fixed in V11.2 but since then it returns File[path/to/file/that/does/not/exits]
instead of 401
Failure/HTTPResponse like URLRead
does.
CASE:3877019 - confirmed
The second one prompts the dialog:
URLRead["https://httpbin.org/status/401", Interactive -> False]
URLDownload["https://httpbin.org/status/401", Interactive -> False]
but both should return 401 HTTPResponse since
ref/URLDownload:
URLDownload
takes the options asURLRead
.ref/URLRead
Interactive
-True
- whether to allow interactive authentication dialogs
Have I missed something? Is there a workaround?
It probably can be narrowed to URLSave
broken for "DisplayProxyDialog" -> False
, but this is undocumented so I can't complain.
related:
URLUtilities`PackageScope`$options
, setting which with association<|Interactive -> False|>
works forURLRead
(you can call it without parameters now and it won't show a dialog), but it doesn't forURLDownload
$\endgroup$