In this laboratory i learn about connections between client-servers; using TCP, UDP and Sockets and how we should use them.
In the firt exercise i create a program when i learn about the URL and your componets , in the out of this exercise i get the results present below :
protocol = http authority = url.com:80 host = url.com port = 80 path = /tutorial/index.html query = name=URL filename = /tutorial/index.html?name=URL ref = PRUEBA
In this exercise i create a program that copy the html from a web page and i put this code in a file.html and them i open this file with any browser, then i can see the pages who had copy.
In this exercise i create a client-server and i connected them, then the client have a request to the server and he returns a square number.
In this exercise i create another a client-server but in this case the server return a trigonometric funtion (cos,sen,tan), this server need that i put the operand one time and the all numbers he resolve it using this operand when i change the operand and he has no problems to resolve it.
Here i add the code given in the lab and i add these commands for the server show the html in te browser out.println("HTTP/1.1 200 OK"); out.println("Content-Type: text/html"); out.println("\r\n");
and then the server show your content.
In this exercise i create a http server that recibe multiples request and return all files
In this exercise i implements a datagrams unis threads and i implements a client-server that reponds the actual time and the program update every five minutes.







