Socket server and client
You have a server that receives incoming messages from clients and responds using echo. You have clients that read messages from the keyboard and send them to the server. The program starts, but it doesn't work.
Sending a GET request via a socket
Rewrite the implementation of the getSite method. It must explicitly create and use a Socket connection with the server. The server address and parameters for the GET request should be retrieved from the url parameter. Use the default port for HTTP (80).
GO TO FULL VERSION