10
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

posted at

HTTPのPOSTされているデータをtcpdumpでキャプチャする

postからなにが送られて来ているのかさくっと見たかったのでtcpdumpしてみた。
自分の為のメモとして残しておく。

sudo tcpdump -A 'tcp dst port 80 and (tcp[((tcp[12:1] & 0xf0) >> 2):4] = 0x504f5354)'

参考になったページ
http://stackoverflow.com/questions/4777042/can-i-use-tcpdump-to-get-http-requests-response-header-and-response-body

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
10
Help us understand the problem. What are the problem?