Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Simple Snitching in Java
// Using raw*
URL obj = new URL("[snitch code]?m=[message]");
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
// Apache HttpComponents
CloseableHttpClient httpclient = HttpClients.createDefault();
HttpGet httpGet = new HttpGet("[snitch code]?m=[message]");
CloseableHttpResponse response1 = httpclient.execute(httpGet);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.