define http protocol code example Example: http and how it works HTTP is a connectionless text based protocol.