简体   繁体   中英

How to see my raw http post *from* java/jboss?

I have a HTTP POST that I do in my java program, running on JBoss, and I would like to intercept it and see the raw request.

I did try Fiddler , as in many answers here, but looks like it will only show the requests from the browser to my JBoss, not from my JBoss/Java to outside.

Any idea?

If you're running on Linux, you can try tcpdump with the following options.

sudo tcpdump -An -s 0 -i any 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)'

If you're on Windows, then Wireshark is probably your best bet.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM