ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Actually, for just sending text to a web browser, you don't even need to touch the HTTP protocol. Just dump a pre-determined text file back to the client upon connection. But it won't hurt to study other higher level protocols after you get the hang of sockets.
That first example I gave you shows examples of tcp/ip connections, the second (+ other posts) show examples of the http protocol. Basically after connecting to the server, the only difference is the commands sent, i.e. send a 'GET' command and it shall be served... It's easier than you think... The telnet example can be used as a client for virtually any protocol, so you might like to start with that?