Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
bd78a81d
Commit
bd78a81d
authored
4 years ago
by
Brittokki
Browse files
Options
Downloads
Patches
Plain Diff
No commit message
No commit message
parent
2e7ceffc
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/src/HttpServletExamples/HttpWebPageSource.java
+6
-3
6 additions, 3 deletions
examples/src/HttpServletExamples/HttpWebPageSource.java
with
6 additions
and
3 deletions
examples/src/HttpServletExamples/HttpWebPageSource.java
+
6
−
3
View file @
bd78a81d
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment