`
隐形的翅膀
  • 浏览: 484807 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

SOAP Debugging with tcpdump

 
阅读更多
You are on a Linux box (SOAP client) making a SOAP request to a SOAP server somewhere on port 80, to view the request and response with tcpdump here are the commands execute at shell.

Incoming SOAP envelope (server response)

tcpdump  -nnvvlXSs 4096 src port 80

Outgoing SOAP envelope (client request)

tcpdump  -nnvvlXSs 4096 dst port 80

Of course if you have additional traffic going in and out from this box you can use the “and” operator to fine tune what you are after.


简单用法,可以分析soap数据包。

1.this is probably the easiest way to monitor SOAP messages.   
2.  
3.simply use   
4.  
5.#tcpdump -i eth0 -A -s 1024 port 80 | tee dump.log   
6.  
7.to log all the packet sent to port 80 to dump.log  



今天在尝试TTserver的Http协议接口,为了确定走的协议是否为Http,需要抓包确定一下,
在windows下有很多工具很方便的抓包,linux下只能通过命令行来操作了,下面简单记录一下
tcpdump工具的使用:

1.//抓包,   
2.tcpdump -nX -s 0 -w cap.raw host 123.123.123.123 and port 2978  
3.//读包   
4.tcpdump -r cap.raw -A  

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics