HTTP - need the outgoing request message

Posted by Tim Kuehn on 09-Mar-2016 21:16

I have some misbehavior in my application and need to see what the HTTP REST client is sending - where would I get this information?

All Replies

Posted by AdrianJones on 10-Mar-2016 03:43

could you use fiddler?

http://www.telerik.com/fiddler

Posted by Tim Kuehn on 10-Mar-2016 07:43

I'll have to give that a try. I was able to solve my issue w/out this by writing the payload json out to a message view-as, though I'd still like to see the actual full message body.

Posted by Peter Judge on 10-Mar-2016 08:06

In 11.6+, the log-manager controls debug logging. Something like the below will suffice.
 
log-manager:logfile-name = session:temp-dir + 'test_create_img.log'.
log-manager:logging-level = 5.
log-manager:clear-log ().
 
You need a log-level of 5+.
 
In 11.5.1 it's the DEBUG-ALERT flag.
 
Both approaches put at least 2 files in the session:temp-dir: request-raw.txt and response-data-received.txt  which contain the data that's on the wire (no processing is applied so you may see lots of NULLs).
 

Posted by Tim Kuehn on 10-Mar-2016 08:31

5? Ok - will do.

Is there a way to change where the output request/response files go?

Thx!

Posted by Peter Judge on 10-Mar-2016 08:34

No, they're always in –T / session:temp-dir .
 

Posted by OctavioOlguin on 10-Mar-2016 09:44

But what you need, the full message, only will be catched by fiddler.  (a hidden gem on the telerik merge)

This thread is closed