Search Results

Search found 1 results on 1 pages for 'user1323884'.

Page 1/1 | 1 

  • How to send JSON request to service with parameters in Objective-C

    - by user1323884
    I'm creating a iPhone app, and im trying to figure out how to create a JSON request to the webservice that contains parameters. In Java this would look like this HashMap<String, String> headers = new HashMap<String, String>(); JSONObject json = new JSONObject(); json.put("nid", null); json.put("vocab", null); json.put("inturl", testoverview); json.put("mail", username); // [email protected] json.put("md5pw", password); // donkeykong headers.put("X-FBR-App", json.toString()); The header has to contain a JSON object and "X-FBR-App" before the service recognizes the request. How would this be implemented in Objective-C ?

    Read the article

1