When I execute GET PING.PING HTTP/1.0 in a client code (Some GUI screen
testing a host server) it works (200 OK), when doing it in my
java code it doesn't. Can you help? Thanks
HttpsURLConnection con = (HttpsURLConnection)myurl.openConnection();
con.setDoOutput(true);
con.setDoInput(true);
//con.setRequestMethod("PUT");
//con.setRequestMethod("GET");
//System.out.println(con.getRequestMethod());
OutputStream out = con.getOutputStream();
out.write("GET PING.PING HTTP/1.0\r\n".getBytes());
out.flush();
out.close();