python todo.py
To run the server with TLS uncomment the lines 80-81 in todo.py and enter the following
PEM pass phrase:shir
(and don't forget to change the client to use https).
gcc -o todo_client todo_client.c -Wall -lcurl
./todo_client
cd cookies
python cookie_server.py
gcc -o cookie cookie_client.c -Wall -lcurl
./cookie
Make sure that you don't have the file cookies.txt
in the same directory as the client, if you do, delete it.
Open browser and go to: http://127.0.0.0:8003/set-cookie/{username}
, open Developer tools and check cookies and then go to:
http://127.0.0.0:8003/get-cookie
cd http2
python scott_h11.py
python scott_h2.py
(PEM pass phrase:shir)
Open browser and go to https://0.0.0.0:8011/scott
for http1.1 and https://0.0.0.0:8012/scott
for http2