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