
Reading Course Report
독서 과정 보고서
이 저장소는 예제를 참조합니다.
simple-client.py는 명령 인수로 전달된 URL에 HTTP 요청을 보내는 Python 스크립트입니다.
simple-server.py는 Flask를 사용하여 수신된 요청의 헤더를 출력하는 간단한 HTTP 서버를 구축합니다.
pip install virtualenvvirtualenv로 두 개의 Python 환경을 생성합니다. 예시:
virtualenv -p [path_to_one_Python_version] venv-one-versionvirtualenv -p [path_to_the_other_Python_version] venv-the-other-versionflask를 설치합니다. 해당 환경을 활성화하고 pip install flask를 실행하세요.source ./venv-one-version/bin/activate로 활성화합니다.python simple-server.py를 실행합니다.python simple-client.py http://127.0.0.1:8000/test-urlpython simple-client.py http://127.0.0.1%0d%0aX-injected:%20header%0d%0ax-leftover:%20:8000/test-url