
Reading Course Report
Reading Course Report
This repo references an example.
simple-client.py is a Python script to make HTTP requests to the URL passed from a command argument.
simple-server.py uses Flask to construct a simple HTTP server to print the headers of received requests.
pip install virtualenvvirtualenv. For example:
virtualenv -p [path_to_one_Python_version] venv-one-versionvirtualenv -p [path_to_the_other_Python_version] venv-the-other-versionflask in both environments. Activate corresponding environment, and pip install flasksource ./venv-one-version/bin/activatepython simple-server.pypython simple-client.py http://127.0.0.1:8000/test-url for healthy URLpython simple-client.py http://127.0.0.1%0d%0aX-injected:%20header%0d%0ax-leftover:%20:8000/test-url for malicious URL