Skip to content
Snippets Groups Projects
Commit bd78a81d authored by Brittokki's avatar Brittokki
Browse files

No commit message

No commit message
parent 2e7ceffc
No related branches found
No related tags found
No related merge requests found
...@@ -27,9 +27,12 @@ public class HttpWebPageSource { ...@@ -27,9 +27,12 @@ public class HttpWebPageSource {
// We request an IP to connect to a web server running on default http port 80. // We request an IP to connect to a web server running on default http port 80.
String WEB_ADDRESS = "www.nps.edu"; String WEB_SERVER_ADDRESS = "www.nps.edu";
System.out.println("New socket WEB_ADDRESS=" + WEB_ADDRESS); int WEB_SERVER_PORT_HTTP =80;
Socket socket = new Socket(WEB_ADDRESS, 80); // compare alternative: https on port 443 int WEB_SERVER_PORT_HTTPS =443;
System.out.println("New socket WEB_ADDRESS=" + WEB_SERVER_ADDRESS);
Socket socket = new Socket(WEB_SERVER_ADDRESS, WEB_SERVER_PORT_HTTPS); // compare alternative: https on port 443
// we send a command to the web server, asking for what // we send a command to the web server, asking for what
// we want. Note that the format for the command is very // we want. Note that the format for the command is very
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment