jsoncoldfusioncfhttp

How to CFDUMP the "Body" of an HTTP POST


Here's my question of the day. Let's say I have this on one page:

start.cfm

<cfset body = { "stuff": [ 1,2,3,4,5 ] }>

<cfhttp url="end.cfm" method="post" result="httpResp" timeout="60">
    <cfhttpparam type="header" name="Content-Type" value="application/json">
    <cfhttpparam type="body" value="#serializeJSON(body)#">
</cfhttp>

I can't figure out what end.cfm needs to have to output what's in the body. I've tried to cfdump everything from variables to form to cgi but I can't get to it. What am I missing?


Solution

  • Such a dumb question that I was able to answer it with some additional Googling.

     <cfdump var="#GetHttpRequestData()#">