My Code below:
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);
this work using localhost but when run on production server it returned HTTP response code: 999
for URL.