下面的我的代码:
System.out.println("Linkedin URL="+"https://"+linkedinUrl);
Document aResponseDocument= null;
//Connection.Response aResponse = Jsoup.connect("https://www.linkedin.com/in/noah-bennett-453a4833").cookies(response.cookies()).method(Connection.Method.GET).execute();
Connection connection = Jsoup.connect("https://"+linkedinUrl)
//.referrer("http://localhost:8080")
//.headers(headerMap)
.cookies(response.cookies())
.method(Connection.Method.GET);
这项工作使用本地主机,但是在生产服务器上运行时,它返回了HTTP response code: 999
作为URL。