ant -f C:\\x-nps-gitlab\\NetworkedGraphicsMV3500\\examples -Dnb.internal.action.name=run.single -Djavac.includes=HttpServletExamples/HttpWebPageSource.java -Drun.class=HttpServletExamples.HttpWebPageSource run-single
init:
Deleting: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\built-jar.properties
deps-jar:
Updating property file: C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\built-jar.properties
Compiling 1 source file to C:\x-nps-gitlab\NetworkedGraphicsMV3500\examples\build\classes
compile-single:
run-single:
HttpWebPageSource: create http connection and retrieve default page
Reference:  https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
Reference:  https://tools.ietf.org/html/rfc7230
Reference:  https://en.wikipedia.org/wiki/CURL

New socket WEB_ADDRESS=www.nps.edu
GET /index.html HTTP/1.0

1: HTTP/1.1 301 Moved Permanently
2: Date: Wed, 12 Aug 2020 01:19:20 GMT
3: Server: Apache
4: Location: https://instituteforsecuritygovernance.org/index.html
5: Content-Length: 261
6: Connection: close
7: Content-Type: text/html; charset=iso-8859-1
8: 
9: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
10: <html><head>
11: <title>301 Moved Permanently</title>
12: </head><body>
13: <h1>Moved Permanently</h1>
14: <p>The document has moved <a href="https://instituteforsecuritygovernance.org/index.html">here</a>.</p>
15: </body></html>
HttpWebPageSource: response finished
BUILD SUCCESSFUL (total time: 2 seconds)

now using https to port 443:

run-single:
HttpWebPageSource: create http connection and retrieve default page
Reference:  https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol
Reference:  https://tools.ietf.org/html/rfc7230
Reference:  https://en.wikipedia.org/wiki/CURL

New socket WEB_ADDRESS=www.nps.edu
GET /index.html HTTP/1.0

1: HTTP/1.1 400 Bad Request
2: Date: Mon, 17 Aug 2020 18:25:20 GMT
3: Server: Apache
4: Content-Length: 362
5: Connection: close
6: Content-Type: text/html; charset=iso-8859-1
7: 
8: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
9: <html><head>
10: <title>400 Bad Request</title>
11: </head><body>
12: <h1>Bad Request</h1>
13: <p>Your browser sent a request that this server could not understand.<br />
14: Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
15:  Instead use the HTTPS scheme to access this URL, please.<br />
16: </p>
17: </body></html>
HttpWebPageSource: response finished
BUILD SUCCESSFUL (total time: 2 seconds)