WebClient.builder().baseUrl(...).defaultHeaders(header -> header.setBasicAuth(...)[...].build(); 使用我正在尝试的HttpClient: HttpClient.create().baseUrl(...).headers(/*not sure how to set the basic authentication here*/)
ccm = new ThreadSafeClientConnManager(params,DefaultHttpClient httpclient= new DefaultHttpClient(ccm, params); proxy);
//I add my authentication informa