LeadCo
asked on
How to avoid Connection Failure with cfhttp...
Expert Needed:
I have a post and it gets a connection failure -popped up outa nowhere. It was working fine.
I created a page that basically submits a form automated sumbit with all hidden fields and it works fine, same form fields. Any Suggestions from the experts? I need the cfhttp to work.
I have a post and it gets a connection failure -popped up outa nowhere. It was working fine.
I created a page that basically submits a form automated sumbit with all hidden fields and it works fine, same form fields. Any Suggestions from the experts? I need the cfhttp to work.
<!--- This gets a coonection failure: --->
<cfhttp url="https://URL.aspx" method="post">
<cfhttpparam type="FORMFIELD" name="Name" value="Nick Sabane">
<cfhttpparam type="FORMFIELD" name="Address" value="101 Main st">
<cfhttpparam type="FORMFIELD" name="City" value="Mobile">
<cfhttpparam type="FORMFIELD" name="State" value="AL">
<cfhttpparam type="FORMFIELD" name="Zip" value="35444">
<cfhttpparam type="FORMFIELD" name="Phone" value="2563417449">
<cfhttpparam type="FORMFIELD" name="Email" value="123@aol.biz">
<cfhttpparam type="FORMFIELD" name="Company" value="My Company">
</cfhttp>
<cfoutput>#cfhttp.FileContent#</cfoutput>
This works:
<cfform action="https://URL.aspx" method="post" name="form1" target="_self">
<input name="Name" type="hidden" value="Nick Sabane" />
<input name="Address" type="hidden" value="115 Main st" />
<input name="City" type="hidden" value="Mobile" />
<input name="State" type="hidden" value="AL" />
<input name="Zip" type="hidden" value="35444" />
<input name="Phone" type="hidden" value="2563417449" />
<input name="Email" type="hidden" value="123@aol.biz" />
<input name="Company" type="hidden" value="My Company" />
<script>
document.form1.submit();
</script>
</cfform>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER