I used this code in my Android application:
import org.apache.http.client.methods.HttpPost;
...
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://myServerAddress");
httppost.setEntity(new UrlEncodedFormEntity(myArrayList));
HttpResponse response = httpclient.execute(httppost);
Is correct to say that this code uses REST protocol?
— edit —
(server-side I used a script that returns a JSON object)
REST is a server-side architecture. It is not possible to determine from this client code whether the server has such an API architecture. “Maybe.”