PC web browser loading web pages from serial port (arduino) instead of HTTP sock

I have a strange idea that if a PC web browser can load web pages (stream) from the serial port, then we will have a very easy to make web-based interface. I searched the web but didn’t find anything useful. Is it possible? Thanks.

If this works, the arduino can act as web server and essentially has a connection to its client at all time, responding to GET and POST requests or ajax etc.

I have a strange idea that if a PC web browser can load web pages (stream) from the serial port, then we will have a very easy to make web-based interface. I searched the web but didn’t find anything useful. Is it possible?

Not unless you develop a non-standard browser. Browsers get data from the httpd daemon that is running on the PC. The daemon is listening to a socket connect to a port (not a serial port).

I thought it might be hard to do. But isn't httpd only a GNU/Linux routine and is it acting as a server or client? I'm talking about client PC connecting to Arduino like Arduino was a server.

OK, if that is hard, what about a browser window that can be embedded in another program?

But isn't httpd only a GNU/Linux routine

There is an equivalent process for Windows.

and is it acting as a server or client?

Yes. It's a two way process - getting data from the socket when a client connects and sending data to the socket when the server has something to return.

OK, if that is hard, what about a browser window that can be embedded in another program?

On Windows, there is a browser widget that can be embedded in other programs. It connects to the socket, just like internet explorer or Firefox.

You'd need to write your own function that connected to the (appropriate) serial port instead. The browser is a rather complex application that gets data from the server and renders the html, images, audio, etc. that it gets back.

I guess it's Java/Processing then. That I know how to connect to serial port and do some simple GUI. Thanks Paul.