Skip to content

Simple web-server on Python with socket default library.

License

Notifications You must be signed in to change notification settings

vrnxx/echo-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple echo web-server

An EchoServer is an application that allows a client and a server to connect so a client can send a message to the server and the server can receive the message and send, or echo, it back to the client.

Simple echo web-server on Python with socket default library.

Socket library official docs here.

Main Features

  • Server listen port 2500 on localhost and send response
  • Headers added to the response, all browsers will be able to process the response correctly

Tech

  • Socket library
  • Python

Installation

  • Install the python interpreter from official site.

  • Clone this repository on you local machine

    git clone https://github.com/AlexanderSeryakov/echo-web-server.git
    
  • Move to directory on main.py file

  • Start the server with command on Windows

    python main.py
    

    or on Linux

    python3 main.py
    
  • If all success you`ll see message in console:

    The server is running and waiting for a request

Use it

  • Move to you browser and send some request to:
    http://127.0.0.1:2500/hello-world
    
  • In you terminal you can see this request and on page in browser you`ll see this message: image

About

Simple web-server on Python with socket default library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages