如何CFDUMP HTTP POST的"正文"

Sun*_*ung 6 coldfusion json cfhttp

这是我当天的问题.假设我在一个页面上有这个:

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>
Run Code Online (Sandbox Code Playgroud)

我无法弄清楚end.cfm需要输出什么在体内.我试过cfdump从变量到形式到cgi的所有东西,但我无法达到它.我错过了什么?

Sun*_*ung 8

这个愚蠢的问题,我能用一些额外的谷歌搜索回答它.

 <cfdump var="#GetHttpRequestData()#">
Run Code Online (Sandbox Code Playgroud)

  • 这是一个很好的问题.我不熟悉这个功能.我现在看看它是如何有用的 (2认同)