title: How to receive POST data from gravity forms for custom script
body: <p>In my functions.php file, I have the something like the following (from gravity forms):</p>
  
  <pre><code>add_action('gform_after_submission_500', 'post_to_third_party', 10, 2);
  function post_to_third_party($entry, $form) {
  
    $post_url = THEME_DIR . '/myscript/index.php';
    $body = array(
        'first_name' =&gt; $entry['1'], 
        'last_name' =&gt; $entry['2'], 
        'email' =&gt; $entry['3']
        );
  
    $request = new WP_Http();
    $response = $request-&gt;post($post_url, array('body' =&gt; $body));
  }
  </code></pre>
  
  <p>What should i have in 'myscript/index.php' to receive the post data so that I can use it?</p>