Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 523 Bytes

File metadata and controls

28 lines (19 loc) · 523 Bytes

Basic HTTP server implementation using sockets in Python.

server

python server.py
# start server on port 8000

python server.py 2000
# start server on port 2000

client

python client.py
# Get index.html from 127.0.0.1:8000

python client.py 127.0.0.1:2000
# Get index.html from 127.0.0.1:2000

python client.py 127.0.0.1:2000/client.py
# Get client.py from 127.0.0.1:2000