connection.setDoOutput(true);
OutputStreamWriter connectionWriter = new OutputStreamWriter(connection.getOutputStream());
connectionWriter.write(request);
connectionWriter.close();
InputStream contentStream = connection.getInputStream();
BufferedReader in = new BufferedReader(new InputStreamReader(contentStream));
boolean insertOK = true;
String line;
while ((line = in.readLine()) != null) {
if (line.contains(REPLY_ALERT)) {
insertOK = false;