How do I set the body of a HttpPut on Android? (without adding libraries)
<p>I want to upload some data from an Android application to Pachube.</p>

<p><a href="http://hurl.it/?url=http://api.pachube.com/v2/feeds/YOUR_FEED_ID.json&amp;header-keys%5B%5D=X-PachubeApiKey&amp;header-vals%5B%5D=YOUR_API_KEY_HERE&amp;method=PUT&amp;post-body=%7B%22title%22%3a%22Your%20Changed%20Title%22,%22version%22%3a%221.0.0%22,%22datastreams%22%3a%5B%7B%22id%22%3a%22stream0%22,%22current_value%22:12.3%7D,%7B%22id%22%3a%22stream1%22,%22current_value%22:24.2%7D%5D%7D" rel="nofollow">This hurl</a> is provided by their <a href="https://pachube.com/docs/v2/feed/update.html" rel="nofollow">documentation</a> as an example.</p>

<p>How can I achieve this with Android's implementation of HttpPut (or HttpPost)?</p>

<p>I don't really want to have to add any extra libraries, as I want to keep the application as small as possible.</p>

<p>I already have a JSONObject with my data in it.</p>
