I'm beginner in Python and I would like to build simple port sniffer. For this purpose I'm using code from this site, as example: Simple packege snffer using python And I would like to unpack bites from socket to exctract http header, using function struct.unpack()
What format of string should I use in unpack HTTP header, (e.g '!BBH', "!BBHHHBBH4s4s",'!HHLLBBHHH')