title: How to capture the actual data that is being transfred between Web Server and WebService
body: <p>I wrote PHP code that allows me to communicate with a REST API.</p>
  
  <p>My PHP call issues a <code>cURL</code> call to communicate with the API service. However, I am running into a weird issue where the data that is being received by the API is not what is being sent using cURL. </p>
  
  <p>I would like to setup some type of a middle man to ensure that the request that I send to from Apache is the same data that is received by the API.</p>
  
  <p>The information that I am interested to see is</p>
  
  <ol>
  <li>Request/Received Header</li>
  <li>Request/Received Body</li>
  </ol>
  
  <p>I am thinking about ruining Wireshark on the Apache server to capture the packets that are going from my Apache to the API and also everything that is being received from the API to Apache.</p>
  
  <p>After installing Wireshark on the Apache server "a Windows 7 machine" I see a lot of data.</p>
  
  <p>How can I tell Wireshark to only capture the data from Apache to the API and from the API to Apache only?</p>
  
  <p>Thank you for your help.</p>