Skip to main content
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
EstebanBustamante
EstebanBustamanteAccepted solution
Adobe Champion and Community Advisor
Apr 3, 2024 2:17 PM UTC

Hi, 

Yes, you could do something like the code below, but I would recommend using a Java process instead and utilizing any HTTP client that would most likely be used across your implementation.

var get = new org.apache.commons.httpclient.methods.GetMethod("https://www.google.com"); var client = new org.apache.commons.httpclient.HttpClient(); var status = client.executeMethod(get); log.info("******** status " + status); get.releaseConnection();

 

Hope this helps.

Esteban Bustamante

2 replies

EstebanBustamante
Adobe Champion and Community Advisor
EstebanBustamanteAdobe Champion and Community AdvisorAccepted solution
Adobe Champion and Community Advisor
Apr 3, 2024 2:17 PM UTC

Hi, 

Yes, you could do something like the code below, but I would recommend using a Java process instead and utilizing any HTTP client that would most likely be used across your implementation.

var get = new org.apache.commons.httpclient.methods.GetMethod("https://www.google.com"); var client = new org.apache.commons.httpclient.HttpClient(); var status = client.executeMethod(get); log.info("******** status " + status); get.releaseConnection();

 

Hope this helps.

Translate
Esteban Bustamante
thatsmeadarsh
Level 3
Apr 4, 2024 8:59 AM UTC

Thanks Esteban this helps a lot.

Translate