Hacker News new | past | comments | ask | show | jobs | submit login

Yeah I’ve done this for embedded devices. A website can be presented with nothing more than a raw socket and sending back a text string of http headers and html in a single text string when people connect to it.

Hell if you’re really lazy you can forgo responding with the http headers and just socket.write(“hello world”) as the response and all the major browsers will render “hello world” to the user. Properly formatted http headers are just a text string extra and the html is just text. There’s not much to it.






Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: