Hi,
Do any of these URLs work if you set <verify-cert> to false?
Using your example:
xdmp:http-get("https://en.wikipedia.org/wiki/MarkLogic",
<options xmlns="xdmp:http">
<verify-cert>false</verify-cert>
</options>)
Best,
Rob
Rob Szkutak
Associate Consultant
MarkLogic Corporation
[email protected]
Cell +1.716.562.8464
www.marklogic.com<http://www.marklogic.com>
________________________________
From: [email protected]
[[email protected]] on behalf of Asit Nautiyal
[[email protected]]
Sent: Monday, November 30, 2015 11:39 AM
To: MarkLogic Developer Discussion; Geert Josten
Subject: Re: [MarkLogic Dev General] How to call "https" URL using
xdmp:http-get() method
Hi Geert,
xdmp:http-get() function is not working for "https" URL's. Its working fine
with "http" only. I tried with many URL's.
Please find below one example:
xdmp:http-get("http://www.tutorialspoint.com/",()) This working fine.
But not working for
xdmp:http-get("https://en.wikipedia.org/wiki/MarkLogic",()) and I am getting
error :
Socket connect error: SSL_connect 192.168.1.7:61527-208.80.154.224:443:
certificate verify failed
So, xdmp:http-get() function is not able to call "https" URL's, then what is
the solution for this. How can I call "https" from MarkLogic code side?
Regards,
Asit Nautiyal
________________________________
From: [email protected]
To: [email protected]
Date: Thu, 19 Nov 2015 18:54:47 +0000
Subject: Re: [MarkLogic Dev General] How to call "https" URL using
xdmp:http-get() method
Hi Asit,
It should normally be enough to just replace http with https in the URL. There
are a few options regarding ssl certs, but those are normally not necessary..
Kind regards,
Geert
From:
<[email protected]<mailto:[email protected]>>
on behalf of Asit Nautiyal
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion
<[email protected]<mailto:[email protected]>>
Date: Thursday, November 19, 2015 at 6:58 PM
To: "[email protected]<mailto:[email protected]>"
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] How to call "https" URL using xdmp:http-get()
method
Hi,
We have implemented SSL on http server in MarkLogic. Now, I am not able to
access rest api's using xdmp:http-get() method from that http server because
all URL has been changed from "http" to "https". I am getting
Socket_connection:SSL error.
How can I call "https" URLs using xdmp:http-get() method?
Regards,
Asit Nautiyal
_______________________________________________ General mailing list
[email protected] Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general