title: Marklogic 8 http-get to AWS API gateway results in SSL handshake failure
body: <p>I want to write a xquery module that calls an AWS API gateway endpoint. I ran code like the following:</p>
  
  <pre><code>xdmp:http-get("https://gxkhphr091.execute-api.eu-west-1.amazonaws.com/prod",
          &lt;options xmlns="xdmp:http"&gt;
            &lt;allow-sslv3&gt;false&lt;/allow-sslv3&gt;
            &lt;allow-tls&gt;true&lt;/allow-tls&gt;
          &lt;/options&gt;)
  </code></pre>
  
  <p>and all I get back is:</p>
  
  <pre><code>[1.0-ml] SVC-SOCCONN: xdmp:http-get("https://gxkhphr091.execute-api.eu-west-1.amazonaws.com/prod", &lt;options xmlns="xdmp:http"/&gt;)
  -- Socket connect error: SSL_connect 192.168.15.17:59789-52.85.63.117:443: sslv3 alert handshake failure (0x14077410)
  </code></pre>
  
  <p>The endpoint doesn't require client certification. Doing a CURL from the same host works just fine:</p>
  
  <pre><code>curl -v https://gxkhphr091.execute-api.eu-west-1.amazonaws.com/prod
  </code></pre>
  
  <p>I read that AWS API Gateway doesn't support SSLv3 any more - it requires TLS, which is why I used the above options, but I also tried other combinations of options and they all result in the same SSLv3 error above.</p>
  
  <p>I have tried with other https:// URLs such as those for AWS S3 and they work, so it's something different with the way API Gateway does SSL/TLS.</p>
  
  <p>Any ideas what the issue is?</p>