package com.complet;

import java.io.IOException;
import java.net.*;

public class ServerResponse {

	public static void response(URL url) throws IOException {

		HttpURLConnection connection = (HttpURLConnection) url.openConnection();

		try {

			connection.connect();

		} catch (Exception exp) {

		    System.err.println(exp.getMessage());

		}
	}

}
@@ -113,12 +113,14 @@
 tic 
-void
+String
  res
@@ -265,16 +265,118 @@
 nnect();
+%0A%09%09%09String response = connection.getResponseMessage();%0A%09%09%09connection.disconnect();%0A%09%09%09return response;
 %0A%0A%09%09%7D ca
@@ -408,27 +408,15 @@
     
-System.err.println(
+return 
 exp.
@@ -427,17 +427,16 @@
 essage()
-)
 ;%0A%0A%09%09%7D%0A%09

return a string which contains the HTTP response message or an error message- close connection