I am sending a sms via Clickatell using the HttpURLConnection method in java.
Although the message sends fine, I cannot seem to get the message returned by Clickatell.
The way it works without java is I paste the url into the browser and on the browser window
either a message id appears or an error message appears. (I have included screen shots of both.)
I am looking for a way to retrieve the error/success message that clickatell returns in the screen shots.
Here is the main snippet of the current code:
I have tried get and post but this simply returned a null value.
Either I am using these methods wrong, or because the actual
URL does not change the to include the value, the value cannot
be picked up by these methods.
Any ideas what I need to do differently or how to get the results?
Thanks for the help.
Courage is not the absence of fear but rather the judgment that something is more important then fear. ~ Ambrose Redmond
Joined: Jul 31, 2009
Managed to sort it out using an Input Stream instead