Skip to content

Instantly share code, notes, and snippets.

@seasu
seasu / keybase.md
Created Sep 10, 2019
Keybase Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am seasu on github.
  • I am seasu (https://keybase.io/seasu) on keybase.
  • I have a public key ASCCzrHyplGYPshhzMnU0yrZzVQGCG2XdX1OrIiQ0kNkFAo

To claim this, I am signing this object:

@seasu
seasu / GET POST JAVA
Created May 16, 2013
Java using HttpURLConnection to get or post
View GET POST JAVA
private String excuteGet(String desiredUrl)
throws Exception {
URL url = null;
BufferedReader reader = null;
StringBuilder stringBuilder;
try {
// create the HttpURLConnection
url = new URL(desiredUrl);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();