Personal Project

Wednesday, May 25, 2016

How to sniff packets for REST API on Ubuntu ?


Since the REST API is based on Http protocol, it is necessary to sniff the http header
and messages to assure that your applications function well.  The more you understand
how the Http messages work and communicate, the faster you can make your job done.

The command shown below might be useful for you to dump Http header and message while developing REST API on Ubuntu Linux. Its feature is as same as whireshark on Windows.


tcpdump -A -vvv -i [network card] port [ number]
 ex:
tcpdump -A -vvv -i eth0 port 8080


No comments:

Post a Comment