cfhttp を使用してリモート サービスを呼び出す cfc があります。サービスが失敗コードを返しています。これは、リモート サービスへの呼び出しが適切にフォーマットされていないことを意味します。送信している cfhttp 投稿のコンテンツを取得する方法はありますか? 生の投稿データをキャプチャして、書式設定の問題がどこにあるかを確認したいと考えています。これは私のコードがどのように見えるかのサンプルです:
<cfhttp url="https://www.webservice.com" method="POST" result="httpResponse">
<cfhttpparam type="formField" name="method" value="doSomething">
<cfhttpparam type="formField" name="user" value="myUserName">
<cfhttpparam type="formField" name="password" value="myPassword">
</cfhttp>
私はこのようなことをしたいと思います:
<cfset result = structNew() />
<cfset result["response"] = httpResponse />
<cfset result["sentContent"] = cfhttp.sentContent />
サーバーログを見ずに、送信された cfhttp の内容を取得することは可能ですか? 私のサーバーはオフサイトであり、ログの取得は PITA になります。