views:

101

answers:

3

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.

A: 

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.

David Collie
+4  A: 

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.

Stephen Moretti
A: 

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

zarko.susnjar