title: How to implement HTTP POST (with JSON body) in App Inventor 2?
body: <p>Brand new to this and spent a good deal of time searching for this information. Got it working on Kinetise, but those chaps want $100 month. Not!</p>
  
  <p>I am using Bluemix with a cloudant nosql database and successfully populating that database with weatherstation sensor data.</p>
  
  <p>Here is my HTTP POST DATA and a SAMPLE RETURN value;</p>
  
  <p><strong>The API URL is</strong>,
  <a href="https://6bf8b7fb-a253-4433-a8e3-20da37e95dee-bluemix.cloudant.com/dpjg-sensorlog3/_find" rel="nofollow">https://6bf8b7fb-a253-4433-a8e3-20da37e95dee-bluemix.cloudant.com/dpjg-sensorlog3/_find</a></p>
  
  <p><strong>The code below created with Postman works perfectly from Postman!!!</strong></p>
  
  <pre><code>POST /dpjg-sensorlog3/_find HTTP/1.1
  Host: 6bf8b7fb-a253-4433-a8e3-20da37e95dee-bluemix.cloudant.com
  Authorization: Basic dHRlcnNlZW5ncnRpbmV2ZW5zd2Vyc3R1OmJmNGMzZmRkOTFjMzVjNDYyN2JmNDBiN2ViYTFkNjBhMzkyjhhZDc=
  Content-Type: application/json
  Cache-Control: no-cache
  Postman-Token: 666e0601-41de-de9a-e8e4-346cc353eb71
  
  {
    "selector": {
      "tme": {
        "$gt": 0
      }
    },
    "fields": [
      "tme",
      "oat",
      "sot",
      "oah",
      "rnt",
      "lux",
      "bxt",
      "spv",
      "btv",
      "hea"
    ],
    "sort": [
      {
        "tme": "desc"
      }],
    "limit":1
  }
  </code></pre>
  
  <p><strong>The sample response is</strong>,
      {"docs":[
      {"tme":"2016-04-29T19:36:18-    04:00","oat":"77.2","sot":"78.0","oah":66.1,"rnt":0,"lux":73,"bxt":0,"spv":"4.3"    ,"btv":"3.6","hea":33024}
      ]}`</p>
  
  <p>I cannot figure out how to set this up in an app inventor 2 block.</p>
  
  <p>I don't know what to use for the property URL on the DESIGN page nor what to populate in the .posttext text input.</p>