networked programs this is long and complex -page document with lot of detail if you find it interestingfeel free to read it all but if you take look around page of rfc you will find the syntax for the get request to request document from web serverwe make connection to the www pr org server on port and then send line of the form get where the second parameter is the web page we are requestingand then we also send blank line the web server will respond with some header information about the document and blank line followed by the document content the world' simplest web browser perhaps the easiest way to show how the http protocol works is to write very simple python program that makes connection to web server and follows the rules of the http protocol to request document and display what the server sends back import socket mysock socket socket(socket af_inetsocket sock_streammysock connect(('data pr org' )cmd 'get mysock send(cmdwhile truedata mysock recv( if len(data break print(data decode(),end=''mysock close(codefirst the program makes connection to port on the server www py com since our program is playing the role of the "web browser"the http protocol says we must send the get command followed by blank line \ \ signifies an eol (end of line)so \ \ \ \ signifies nothing between two eol sequences that is the equivalent of blank line once we send that blank linewe write loop that receives data in -character chunks from the socket and prints the data out until there is no more data to read ( the recv(returns an empty stringthe program produces the following outputhttp/ ok datewed apr : : gmt serverapache(ubuntu