Reputation: 4065
I am using CFHTTP to connect to a server and post some parameters. I have successfully imported the certificate.
<cfhttp url="https://xml.proveid.experian.com/IDSearch.cfc" method="post" result="response" port="443">
<cfhttpparam type="Header" name="Accept-Encoding" value="*">
<cfhttpparam type="header" name="content-length" value="#len(arguments.xml)#" />
<cfhttpparam type="xml" value="#trim(arguments.xml)#" />
</cfhttp>
As you can see the request is for port 443 but the error I got back is:
struct Charset [empty string]
ErrorDetail Connect Exception: Connect to xml.proveid.experian.com:80
[xml.proveid.experian.com/194.60.180.108]
failed: Connection timed out: connect
Filecontent Connection Failure Header [empty string]
Mimetype Unable to determine MIME type of file.
Responseheader struct [empty]
Statuscode Connection Failure. Status code unavailable.
Text YES Connection Failure. Status code unavailable.
Can anyone explain why the request is made on port 80?
Upvotes: 1
Views: 927
Reputation: 2021
https://xml.proveid.experian.com/IDSearch.cfc (port 443) is immediately redirecting to http://xml.proveid.experian.com:80/CFIDE/componentutils/cfcexplorer.cfc?method=getcfcinhtml&name=oneninetwo.corpwsdl2.IDSearch&path=/IDSearch.cfc (port 80)
It's that second page that is timing out.
Upvotes: 2
Reputation: 4065
It seems that the specific web service doesn't play well with CFHTTP. So this approach solved the problem.
<cfset args.xml = 'xml value'>
<cfinvoke
webservice="https://xml.proveid.experian.com/IDSearch.cfc?wsdl"
method="search"
returnvariable="aTemp"
argumentCollection="#args#">
</cfinvoke>
Upvotes: 0