I was trying to connect to client's remote URL using CFHTTP and I was getting an error saying "Connection Failure: Status code unavailable". So to fix that I used below code and this solved by problem:
<cfobject action="Create" name="objSrvHTTP" class="MSXML2.ServerXMLHTTP">
<cfset temp = objSrvHTTP.open("GET","http://google.com")>
<cfset temp = objSrvHTTP.send("")>
<cfset myResult = objSrvHTTP.responsetext>
No comments:
Post a Comment