On Tue, 21 Jan 2014 13:19:28 GMT, Sönke Ludwig wrote:

username/password have been completely ignored in URL.toString. It's fixed now in a4af111.

No, I still have 401 Unauthorized. error.
Still works fine with req.addBasicAuth(username, password) header.