# How to execute a HttpRequest of type HttpRequestMode.Post

**URL:** https://talk.remobjects.com/t/how-to-execute-a-httprequest-of-type-httprequestmode-post/8109
**Category:** Silver
**Tags:** silver, swift
**Created:** [February 11, 2016, 3:39pm UTC](https://talk.remobjects.com/t/how-to-execute-a-httprequest-of-type-httprequestmode-post/8109 "2016-02-11T15:39:48Z")
**Posts on this page:** 1
**Showing post:** 39

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [March 4, 2016, 8:34am UTC](https://talk.remobjects.com/t/how-to-execute-a-httprequest-of-type-httprequestmode-post/8109/39 "2016-03-04T08:34:51Z")

</div>

So I rebuild sugar.data, opened SampleAndroidAppFire,  
fixed the projitems reference (which was hardcoded),  
fixed the sugar reference,  
ran a matching android virtual machine.  
Ran the android app.

Noticed the security exception and added:

```auto
  <uses-permission android:name="android.permission.INTERNET" />
  <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

```

Then I finally got an:

- 

```
  error	{java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]}	java.lang.Exception

```

and the other one.

Just pull latest sugar and it’s fixed.

---

_[View the full topic](https://talk.remobjects.com/t/how-to-execute-a-httprequest-of-type-httprequestmode-post/8109)._
