Android OutputStreamWriter for HttpURLConnection issue when calling multiple times

Synopsis: I have an AsyncTask with doInBackground method from which I am calling sendHttpBuffer to send some strings to the http receiver. example: String[] tmp = {“TEST TO SEND”,”<|test123|>”}; sendHttpBuffer(connection,tmp); … do something in between String[] tmp2 = {“TEST TO SEND 2″,”<|test456|>”}; sendHttpBuffer(connection,tmp2); The issue is: when calling sendHttpBuffer multiple times, only the first is…

Details