handle HTTP1/1 401 manually. Sometimes the httpclient class does not do itp