I'm trying to write a server in python 2.7 which receives and verifies that the client uses HTTP protocol (either 1.1 or 1.0 but a support has to be given for both).
How can I verify that the client is sending "a correct" protocol (either 1.0 or 1.1) and not trying to inject code to my server?
GET / HTTP/1.0, that's how you determine the version the client is trying to use..)