Check http response of an external application from sightly code
Hi All,
I am planing to check the Http response of an external application from my sightly component.
From development perspective which one is better -
1. Make ajax call to check the application response code from sightly component itself.
or
2. Write a back end logic using WCMPojo with HttpURLConnection and validate the response.
or
3. Crate a servlet, get the response using HttpURLConnection and make a ajax call to that servlet from sightly component.
Please suggest.
Thanks,
Debal