I am trying post some data to a url on my server, however the server is only coming back with an empty array instead of what I thought was posted. I am probably missing something, but I am unsure what.
Code:
HttpConnection oCon = (HttpConnection)Connector.open(url, Connector.READ_WRITE);
oCon.setRequestMethod("POST");
URLEncodedPostData oPostData = new URLEncodedPostData(url, false);
oPostData.append("param1", "ThisIsTheValueOfParam1");
oPostData.append("param2", "ABC123");
OutputStream strmOut = oCon.openOutputStream();
strmOut.write(oPostData.getBytes());
strmOut.close(); The connection is fine and I get the response from the server, but apparently nothing is posted. Thanks.