我需要从其他站点获取来自某个 Lotus 连接站点的数据,例如用户状态。我尝试通过java建立与lotus的连接,例如
> server = "https://" + path + param + "&format=full";
> URL profiles_url = new URL(server);
> // Open the URL: throws exception if not found
> HttpURLConnection profiles_conn = HttpURLConnection)profiles_url.openConnection();
> profiles_conn.connect();
> // Process the Atom feed in the response content
> readResponse(profiles_url.openStream(),args[0]);
但我总是得到响应:HTTP/1.1 401 Unauthorized 请给我任何建议?