title: Error while consuming REST service over HTTPs
body: <p>I have a simple REST HTTPS POST, the uri of it is like that: <a href="https://paymentservicestest.informa.com/mcas_services.asp" rel="nofollow">https://paymentservicestest.informa.com/mcas_services.asp</a>?</p>
  
  <p>which works perfectly to run in a browser, Postman, etc. With Mule 3.8 HTTP I select the uri from the RAML generataed specification, set uri-param and still I am getting an exception and Code below.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code> ERROR 2016-10-11 16:16:52,944 [[tstconnection].HTTP_Listener_Configuration.worker.01] org.mule.module.http.internal.request.DefaultHttpRequester: Remote host closed connection. Possible SSL/TLS handshake issue. Check protocols, cipher suites and certificate set up. Use -Djavax.net.debug=handshake for further debugging.
   ERROR 2016-10-11 16:16:53,025 [[tstconnection].HTTP_Listener_Configuration.worker.01] org.mule.exception.DefaultMessagingExceptionStrategy: 
   ********************************************************************************
   Message               : Error sending HTTP request.
   Payload               : {NullPayload}
   Payload Type          : org.mule.transport.NullPayload
   Element               : /tstconnectionFlow/processors/1 @ tstconnection:tstconnection.xml:14 (HTTP)
   Element XML           : &lt;http:request config-ref="HTTP_Request_Configuration" path="/mcas_services.asp" method="POST" doc:name="HTTP"&gt;
                           &lt;http:request-builder&gt;
                           &lt;http:query-param paramName="username" value="XXXXX"&gt;&lt;/http:query-param&gt;
                           &lt;http:query-param paramName="password" value="XXXXX"&gt;&lt;/http:query-param&gt;
                           &lt;http:query-param paramName="method" value="XXXXX"&gt;&lt;/http:query-param&gt;
                           &lt;http:query-param paramName="source" value="XXXXX"&gt;&lt;/http:query-param&gt;
                           &lt;http:query-param paramName="cardtype" value="XXXXX"&gt;&lt;/http:query-param&gt;
                           &lt;http:query-param paramName="currency" value="XXXXX"&gt;&lt;/http:query-param&gt;
                           &lt;/http:request-builder&gt;
                           &lt;/http:request&gt;
   --------------------------------------------------------------------------------
   Root Exception stack trace:
   java.io.IOException: Remotely closed
  My sample Code is :
  
   &lt;?xml version="1.0" encoding="UTF-8"?&gt;
   
   &lt;mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
       xmlns:spring="http://www.springframework.org/schema/beans" 
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
   http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
   http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"&gt;
       &lt;http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="2020" doc:name="HTTP Listener Configuration"/&gt;
       &lt;http:request-config name="HTTP_Request_Configuration" protocol="HTTPS" host="paymentservice.informa.com" port="443" connectionIdleTimeout="300000" responseTimeout="300000" doc:name="HTTP Request Configuration" /&gt;
       &lt;flow name="tstconnectionFlow"&gt;
           &lt;http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/&gt;
           &lt;logger message="sampleTest" level="INFO" doc:name="Logger"/&gt;
       &lt;http:request config-ref="HTTP_Request_Configuration" path="/mcas_services.asp" method="GET" doc:name="HTTP"&gt;
              &lt;!--  &lt;http:request-builder&gt;
                   &lt;http:query-param paramName="qParams1" value="#[flowVars.qParams]"/&gt;
               &lt;/http:request-builder&gt; --&gt;
                  &lt;http:request-builder&gt;
                   &lt;http:query-param paramName="username" value="XXXXXX"/&gt;
                   &lt;http:query-param paramName="password" value="XXXXXX"/&gt;
                   &lt;http:query-param paramName="method" value="XXXXXXX"/&gt;
                   &lt;http:query-param paramName="source" value="XXXXX"/&gt;
                   &lt;http:query-param paramName="cardtype" value="XXXX"/&gt;
                   &lt;http:query-param paramName="currency" value="XXX"/&gt;
   
               &lt;/http:request-builder&gt; 
           &lt;/http:request&gt;
           &lt;logger level="INFO" doc:name="blankResponse"/&gt;
           &lt;logger message="Reponse: #[payload]" level="INFO" doc:name="Logger"/&gt;
       &lt;/flow&gt;
   &lt;/mule&gt;</code></pre>
  </div>
  </div>
  </p>