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的所有东西,但我无法达到它.我错过了什么?
这个愚蠢的问题,我能用一些额外的谷歌搜索回答它.
<cfdump var="#GetHttpRequestData()#">
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
251 次 |
| 最近记录: |