diff --git a/projects/TcpExample5/WebExample/src/webexample/WebExample.java b/projects/TcpExample5/WebExample/src/webexample/WebExample.java index e792369a94f6af78d947f1337307b138afdbf690..5d2f18e03fef05d02bdaf0a4b33928e4b335181b 100644 --- a/projects/TcpExample5/WebExample/src/webexample/WebExample.java +++ b/projects/TcpExample5/WebExample/src/webexample/WebExample.java @@ -35,7 +35,7 @@ public class WebExample { // Commands have to terminate with "carriage return/line feed" // twice to end the request. Those are the special characters - // to have the control characters printed. + // to have the control characters printed. Part of the http protocol! ps.print("\r\n\r\n"); ps.flush(); @@ -57,7 +57,7 @@ public class WebExample { } System.out.println("web server message finished"); } - catch(Exception e) + catch(IOException e) { System.out.println(e); System.out.println("Problem with client");