Hi fellow community.
When I run the following code from a CRMScript, I get this error:
"HTTPConnection::endRequest(): Couldn't resolve host name"
Do anyone of you have an idea, on why this problems occurs?
#setLanguageLevel 3;
//String restUrl = "http://jfmcrossintmob.jf.medier:8081/caijfmdev/api/750/v1/";
String restUrl = "http://jfmcrossintmob.jf.medier:8080/caijfmdb/api/750/v1/";
String url = restUrl+"customers/search";
HTTP h;
h.setOption("username", "concare");
h.setOption("password", "concare");
h.setValue("cuCuzip", "8000");
h.addHeader("Content-Type" ,"application/json");
String htmlSvar = String(h.post(url.urlEncode()));
//Byte[] b = h.post(test.urlEncode());
print(h.getErrorMessage());