I need to pass a dynamic variable using cfhttp.
This code:
<cfhttp method="get" url="#cgi.server_name#/page.cfm?pageid=#pageid#" resolveurl="Yes">
<cfoutput>
#cfhttp.FileContent#
</cfoutput>
Returns the error:
The 3 parameter of the Mid function, which is now -8, must be a non-negative integer.
This code returns the same error.
<cfhttp method="post" url="#cgi.server_name#/page.cfm" resolveurl="Yes">
<cfhttpparam type="Formfield"
value="#pageid#"
name="pageid">
</CFHTTP>
<cfoutput>
#cfhttp.FileContent#
</cfoutput>
Any assistance would be appreciated.