This is a project for testing the HTTP protocol.
- Clone the repository:
git clone https://github.com/My-ABC/http_test.git
- Enter the project directory:
cd http_test - Install dependencies:
pip install -r requirements.txt
- Run the project:
python http.py
- Open a web browser and visit
http://127.0.0.1:81/to see the results or Open a web browser and visithttp://127.0.0.1:81/ato see the results or Open a web browser and visithttp://127.0.0.1:81/a/b.htmlto see the results or Open a web browser and visithttp://127.0.0.1:81/a/c.htmlto see the results.
- In the
http.pyfile, you can see thehandle_clientfunction, which is used to handle client requests.