IMAD PROJECT
- First install python version 3.6.3 or higher in your local machine.
- Run "pip install Flask" in your cmd or terminal.
- Run "pip install requests" in your cmd or terminal.
- Run "python first.py" in your cmd or terminal.
Now server is running in your local machine at port no:5000
Simply goto 127.0.0.1:5000 to test the code.
URL according to their functions
- 127.0.0.1:5000 - Main index of server - response with string
- 127.0.0.1:5000/authors - It will list all the author's name and count their number of post .
- 127.0.0.1:5000/setcookie - it will set the cookie with name and age .
- 127.0.0.1:5000/getcookies - it will gives the list of cookies acoording to their key .
- 127.0.0.1:5000/robots.txt - it shows blocked message or abort your request.
- 127.0.0.1:5000/html - it will open gives the file present at /templates/main.html to client.
- 127.0.0.1:5000/input - it will log all your inputs present in textbox by printing at server side.