Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 440
Sung Avatar asked Nov 29 '18 14:11

Sung


1 Answers

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

 <cfdump var="#GetHttpRequestData()#">
like image 118
Sung Avatar answered Sep 28 '22 05:09

Sung