Adding pre-emptive authentication functionaility
Although not recommended in web security, some http clients allow you to preemptively submit your basic authentication credentials to a server, instead of waiting to respond to the 401 Unauthorized challenge.
The default behaviour is preserved, whereby the basic authentication credentials only get supplied when the server challenges the client.
Please use with caution.