title: Spark Send DataFrame as body of HTTP Post request
body: <p>I have a data frame which I want to send it as the body of <code>HTTP Post</code> request, what's the best <code>Sparky</code> way to do it?<br>
  How can I control a number of HTTP requests?
  If the number of records gets bigger is there any way to split sending data frame into multiple HTTP Post call?</p>
  
  <p>let's say my data frame is like this:</p>
  
  <pre><code>+--------------------------------------+------------+------------+------------------+
  |               user_id                |    city    | user_name  |   facebook_id    |
  +--------------------------------------+------------+------------+------------------+
  | 55c3c59d-0163-46a2-b495-bc352a8de883 | Toronto    | username_x | 0123482174440907 |
  | e2ddv22d-4132-c211-4425-9933aa8de454 | Washington | username_y | 0432982476780234 |
  +--------------------------------------+------------+------------+------------------+
  </code></pre>
  
  <p>I want to have <code>user_id</code> and <code>facebook_id</code> in the body of HTTP Post request to this endpoint <code>localhost:8080/api/spark</code></p>