httpget request is not completing for thegiven url ?

samara
samara Explorer

trying to to check any schedule is created prior to submit my schedule with the same name.but request seems to be not completing at the below end point.

end point https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ScheduleGetByName(ScheduleName='schedule name')

String urlGet = urlHost + "/Extractions/ScheduleGetByName(ScheduleName='" + ScheduleName + "')";
HttpGet request = new HttpGet(urlGet);
request.addHeader("Authorization", "Token "+sessionToken);

System.out.println("Retrieve Schedule with this name: "+ ScheduleName); --running till here

HttpResponse response = httpclient.execute(request); --at here it is getting stuck

Best Answer

Answers