Skip to content

Commit

Permalink
updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
SavvasMisaghMoayyed committed Mar 5, 2015
1 parent 82b4c2f commit 7b816b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified Test.class
Binary file not shown.
6 changes: 6 additions & 0 deletions Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import java.net.URL;
import java.net.URLConnection;
import java.net.HttpURLConnection;

import java.util.logging.ConsoleHandler;
import java.util.logging.SimpleFormatter;
Expand Down Expand Up @@ -47,6 +48,11 @@ public static void main(String[] args) throws Exception {

in.readLine();

if (conn instanceof HttpURLConnection) {
int code = ((HttpURLConnection)conn).getResponseCode();
theLogger.info("Response status code received " + code);
}

in.close();
reader.close();

Expand Down

0 comments on commit 7b816b5

Please sign in to comment.