gaby22
asked on
How to get the URL from a CFHTTP post
I'm posting formfields to an application using CFHTTP. The application returns the variable named "status" indicating if the data is correct or not. When I output the cfhhtp.filecontent I only see the action page but the return variable is displayed only in the URL of the action page.. How do I get the URL from the action page to be displayed?
<cfhttp method="POST" URL="http://actionpage.asp" resolveurl="yes">
<cfhttpparam type="Formfield" Name="First_Name" value=#fname#>
<cfhttpparam type="Formfield" Name="Last_Name" value=#lname#>
<cfhttpparam type="Formfield" Name="Email" value=#email#>
</cfhttp>
<cfoutput>#cfhttp.FileCont ent#</cfou tput>
The action page displays “Thank You for Submiting your Info”
The url of the action page looks like http://actionpage.asp?response=accepted or http://actionpage.asp?response=rejected
I’m not able to capture the variable “response”
<cfhttp method="POST" URL="http://actionpage.asp" resolveurl="yes">
<cfhttpparam type="Formfield" Name="First_Name" value=#fname#>
<cfhttpparam type="Formfield" Name="Last_Name" value=#lname#>
<cfhttpparam type="Formfield" Name="Email" value=#email#>
</cfhttp>
<cfoutput>#cfhttp.FileCont
The action page displays “Thank You for Submiting your Info”
The url of the action page looks like http://actionpage.asp?response=accepted or http://actionpage.asp?response=rejected
I’m not able to capture the variable “response”
Try <cfdump var="#cfhttp#"> and see if there is anything in there that you can use.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you can modify the ASP page, the easiest thing to do is just have it return the value you want and then have CF display the "Thank You" message.