String connstr = "OUR LINK"; URL url = new URL(connstr); HttpURLConnection http = (HttpURLConnection) url.openConnection(); http.setRequestMethod("POST"); http.setDoInput(true); http.setDoOutput(true); OutputStream ops = http.getOutputStream(); BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(ops, "UTF-8")); String data =URLEncoder.encode("name_1","UTF-8")+"="+URLEncoder.encode(name_1,"UTF-8")+"&"+ URLEncoder.encode("name_2","UTF-8")+"="+URLEncoder.encode(name_2,"UTF-8");
We are not getting in response in our url in clover mini 2nd generation.
We are getting proper response in other hardware devices. We also setup android studio with Clover Mini 2nd generation and we are getting proper response. But problem in real device and not getting any parameter in request in our link.
Can anyone help me for this issue ?