7 Replies Latest reply on Jul 2, 2007 9:09 AM by prasanth.t

    CFHTTP Tag error


      CFHTTP tag is giving connection failure error at the same time its XML HTTP object is working, while accessing a secured URL.

      Here is the code snipet used,
      <cfhttp URL="https://<url address>:444/Auth.asp"
      method="POST" port="444"
      resolveurl="false" timeout="60">
      <cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0">
      <cfhttpparam type="Header" name="TE" value="deflate;q=0">
      <CFHTTPPARAM type="HEADER" name="User-Agent" value="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)">

      Following code is working for XML HTTP

      <cfobject action="CREATE" class="MSXML2.ServerXMLHTTP.4.0" type="COM" name="objXMLHTTP">
      <cfset objXMLHTTP.open("POST", "https://<url>:444/Auth.asp", False)>
      <cfset objXMLHTTP.setRequestHeader("content-type", "application/x-www-form-urlencoded")>
      <cfset strMessage="command=GetParam">
      <cfset objXMLHTTP.send("#strMessage#")>
      <cfset strResponseText = objXMLHTTP.responseText>

      Test environment and scenarios we followed.

      Running the application in coldfusion MX 7.01 and 7.02 enterprise version in windows 2003.
      Remote application(url we are accessing) SSL used is Versign.
      Error returned is "Connection Failure: Staus code unavailable" and "I/O Exception: peer not authenticated Connection Failure".

      We tried all the configuration setting described in the forums and adobe websites as well as the code change recommended., but it was not useful.

      Guys, what could be the reason of the above mentioned issue?