I'm using MarkLogic 8 and trying to do a POST request to a server. I'm able to connect via curl or using POSTMan, however, its failing with Markloigc. A similar post suggested that its an issue with SNI as Markloigc uses OpenSSL. I have tried to put the option in the post request, however, I'm still getting the same error. Any insights to resolving this issue? See code snippet below:
xdmp:http-post($post_url,
<options xmlns="xdmp:http">
<data>{xdmp:quote($custom_json)}</data>
<headers>
<content-type>application/json</content-type>
<Host>{$host}</Host>
</headers>
<allow-sslv3>true</allow-sslv3>
</options>
)