Skip to content

VivekRamchandani/py-socket-programming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Socket Programming in Python

Creating clients and servers using TCP and UDP sockets.

fakeWebServer

The fakeWebServer.py responds to HTTP messages arriving at port $1234$, with HTTP/1.1 ($200$) message:

HTTP/1.1 200 OK
Connection: keep-alive
Server: Apache/2.2.3 (Linux)
Last-Modified: Fri, 20 Oct 2023 22:02:03 IST
Content-Length: _data_length
Content-Type: text/html

(data)

Browser Output:
Hello, {your_ip_addr}