title: Problem with sending data from Python to PHP using POST
body: <p>I am trying to send data from python to my localhost on rasberry pi but localhost doesn't want to display it. The server responds in python shell but it seems that php doesn't see the data.</p>
  <p>python:</p>
  <pre><code>import requests
  import time
          
  while True:
      
      test = {&quot;1&quot;: &quot;4444&quot;, &quot;1&quot;: &quot;3333&quot;}
      responde = requests.post('http://localhost/index.php', headers={'Content-Type': 'application/x-www-forum-urlencoded'}, params = test)
      print(responde.url)
      print(responde.text)    
      time.sleep(10)
  </code></pre>
  <p>php(localhost):</p>
  <pre><code>While (True){       
      if (isset($_POST['1'])){
          $data = $_POST['1'];
          echo $data;
      }
      else{
          echo &quot;no_data&quot;;
          exit;
      }
  }
  </code></pre>