URLConnection different behavior in Desktop and Console

See Sequoia - new security entitlement(s)