Simple file server to serve files over HTTP protocol via two endpoints /download and /upload
1) git clone https://github.com/MedAmineFouzai/Simple-file-server |
2) cd Simple-file-server |
3) pip install pipenv |
4) pipenv --python 3.6 |
5) pipenv install - r requirements.txt |
6) run project with torn cli : #command: [ torn run ] |
-
To download data from a server, the client initiates a connection to the server and typically sends a HTTP GET request which just asks the server to provide specific data.
-
To upload data to a server, the client again initiates a connection to the server and then typically sends a HTTP POST request which contains the data to be uploaded. The server knows how to handle such a request and stores the data.