I'm trying to send one byte to my server, but with headers all my requests contain at least around 500 bytes; Ajax, jQuery, Fetch - All of them add a big bunch of headers and there is no way to remove them.
Of course, a request is the wrong way to do this. Only I have no experience with sockets in JS and PHP. How do I send minimal bytes with JS and receive them with PHP?
There is no way to do this. Every packet of every protocol uses more than 1 byte. No matter if it's TCP, UDP or something else. After all, they have to know where to go.
So there is no way to send only one byte over the internet.