Hello,
I'm using httppost to call one of the REST service. I'm getting response body but is there any way to get response header from it ?
Thanks,
Tushar
Discussion posts and replies are publicly visible
tushark171, the httppost() is a custom function and it returns only the response body. If you are calling a rest service, It is recommended to use integration object. If you use an integration object you can access response header, statusCode, statusLine, contentType and body
As Integration component does not work because of Hostname verification issue we moved to httppost and now http post does not provide response header
tushark171 said:Hostname verification issue
Can you explain more about this issue? because, httppost() is deprecated and it is not supported by Appian (since it is custom component). So the strategic solution would be to fix the issue and use integration object.
we host services on openshift when we use configuration passthrough on openshift integration component fails with error: "hostname in certificate didn't match" event though weblogic configuration is to ignore hostname verification.
tushark171 said:error: "hostname in certificate didn't match"
httppost() being a custom function, runs directly in JVM so -Dweblogic.security.SSL.ignoreHostnameVerification=true parameter will be applied. Whereas the integration object runs in JVM on top of Appian's code. So, we cannot expect same behaviour.
Try to use the same DNS name present in the subjectDN of the openshift service's SSL certificate, on the URL used in the integration object. If this doesn't work, try creating a self signed certificate for your service's base URL and load it as trusted server certificate in Appian admin console. And check if that helps.
Thanks, Raghu