View cfhttp request

江枫思渺然 提交于 2019-12-18 08:25:57

问题


I would like to view the actual http request that gets sent via my cfhttp tag. What is the best tool to capture this?

Specially, I want to see exactly what headers and content are being sent.


回答1:


To expand on what Edward has said and to answer your question about how you can view a request on ColdFusion;

Create a page that simply dumps everything out from GetHttpRequestData().

Have a look at the livedocs on getHttpRequestData() for more information.




回答2:


Use Charles http proxy. Add the proyport and proxyhost attribute that points to your running instance of Charles. Caveat is that your machine will need to be reachable, and the port open for the server to reach.




回答3:


I'd use sniffer if other side is also CF/Java based server http://kb2.adobe.com/cps/193/tn_19352.html



来源:https://stackoverflow.com/questions/3515452/view-cfhttp-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!