title: how to dump http traffic?
body: <p>I am working with webservices, and I need to get a dump of all the HTTP requests and responses, so that I can debug the interoperability between the devices.</p>
  
  <p>I have a small pc with 3 nics that are bridged, so that it acts as an hub and I can tap the traffic. I am looking for a way to easily dump the HTTP traffic, so that I can analyze the SOAP messages exchanged by the two devices.</p>
  
  <p>For I would prefer to implement that with python, I tried scapy with the <a href="https://github.com/invernizzi/scapy-http" rel="nofollow">HTTP extension</a>, but it does not seem to work, because I see the request parsed three times (I wonder if this is due to the used of a bridge) and I am not able to see the responses.</p>
  
  <p>Is there any other way to implement such a tool? I prefer python, but it is not mandatory.</p>
  
  <p><em><strong>Another small question</em></strong></p>
  
  <p>I add a subquestion: by using the HTTP interpreter that I linked in the previous question, I see that I sometimes get packets that are only recognized as HTTP and not as HTTPRequest or HTTPResponse. Such packets look gzipped, and I think they are related to the fact that a response body does not fit in a single packet. It there a way with scapy to have these packets merged together? I need a way to get the body of the messages. Again, not only in python, and not only with scapy.</p>