Working around a basic auth problem