Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Passing variables with cfhttp

$
0
0

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.


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>