Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Use a Tool like Firebug to see what gets sent when you click the button on the website. I see that a POST-Request is done to uthsms.net with some parameters. You should be able to do the same POST with your app.</p> <p>These are the parameter:</p> <pre><code>button: Send SMS country: (some integer) gateway: 0 hyderabad: your message remLen: remaining length?? sindh: number to send sms to (without the +) x: some integer y: some integer </code></pre> <hr> <p>To send this POST-request in Android use following code:</p> <pre><code>URL url = new URL("http://uthsms.net"); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); String data = URLEncoder.encode("button", "UTF-8") + "=" + URLEncoder.encode("Send SMS", "UTF-8"); data += "&amp;" + URLEncoder.encode("country", "UTF-8") + "=" + URLEncoder.encode(country, "UTF-8"); data += "&amp;" + URLEncoder.encode("gateway", "UTF-8") + "=" + URLEncoder.encode("0", "UTF-8"); data += "&amp;" + URLEncoder.encode("hyderabad", "UTF-8") + "=" + URLEncoder.encode(message, "UTF-8"); data += "&amp;" + URLEncoder.encode("remLen", "UTF-8") + "=" + URLEncoder.encode(remLen, "UTF-8"); data += "&amp;" + URLEncoder.encode("sindh", "UTF-8") + "=" + URLEncoder.encode(number, "UTF-8"); data += "&amp;" + URLEncoder.encode("x", "UTF-8") + "=" + URLEncoder.encode("0", "UTF-8"); data += "&amp;" + URLEncoder.encode("y", "UTF-8") + "=" + URLEncoder.encode("0", "UTF-8"); conn.setDoOutput(true); OutputStreamWriter wr = new OutputStreamWriter( conn.getOutputStream()); wr.write(data); wr.flush(); BufferedReader inStream = new BufferedReader(new InputStreamReader((conn.getInputStream()))); result = inStream.readLine(); inStream.close(); </code></pre> <p>The result seems to be a html-document. Somewhere inside you should find the success message, or possible errors.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload