You should post your code in the </> tags.
You actually got a response so you are more than 50% there ![]()
Try to find out what a system that works actually sends and receives. Wireshark may help in this.
If possible try your own code first against a webserver that you control so that you can look at its logs.