title: manipulate POST data after sending it to PHP from PYTHON
body: <p>I have an internal server that is generating JSON every few minutes. I need to pass this to and external server so I can manipulate the data and then present it in web interface.
  Here is my python that send the data to PHP script:</p>
  
  <pre><code>x = json.dumps(data)
  
  print '\nHTTP Response'
  
  headers = {"Content-type": "application/json"}
  
  conn = httplib.HTTPConnection("myurl.com")
  
  conn.request("POST", "/recieve/recieve.php", x, headers)
  response = conn.getresponse()
  text = response.read()
  print "Response status: ",response.status,"\n",text
  conn.close()
  </code></pre>
  
  <p>and Here is my PHP to receive the data</p>
  
  <pre><code>$data = file_get_contents('php://input');
  $objJson = json_decode($data);
  print_r ($objJson);
  </code></pre>
  
  <p>My python script return with response status 200 which is good and it returns my JSON. But on the PHP side I want to be able to store this information to manipulate and then have a web client grab at it. However it appears that even if I  say</p>
  
  <pre><code>print_r ($objJson);
  </code></pre>
  
  <p>when I visit the .php page it does not print out my object. I suppose the data is gone because file::input will read only and then end?</p>