On Wikipedia and in the wireshark sniffer in the IP packet there is an explicit indication of the transfer protocol (for example, tcp). And for tcp I did not find either in Google or in the sniffer. How can I determine the http protocol with a tcp package?
- 2If this tcp-package is accidentally torn out by a random piece from the stream, then most likely there is no way - andreymal
- oneExplicitly in the package protocol is not specified, but since http-protocol is quite open, then the headers at the top of the package (if the package is whole) can determine (calculate) that it is http. - nick_n_a
- one(well, just in case) the "default" port 80 uses the http protocol. In 99.9% of cases, port 80 (the port in the packet is visible) is the http protocol. But setting up another protocol there is not prohibited. - nick_n_a
|