Hi,
can you give me the Sample Code for an HTTP Request. I know I have to use the ConnectionRequest Class, I worked out the following code. But it is not completet:
ConnectionRequest req = new ConnectionRequest();
req.setPost(true);
req.setHttpMethod("POST");
req.setContentType("application/x-www-form-urlencoded");
req.setUrl("
http://s-software.com/authentication.json");
Hashtable ht = new Hashtable();
//populate the request object
ht.put("name", "demo");
ht.put("password", "demo");
req.getResponseData();
The Parameters have to been read by a streamreader. Can somebody complete this code.
Waiting for your response.