NetBurner 3.5.0
PDF Version
 
Serial Webserver

The Serial Webserver is a simple example demonstrating receiving and replying to HTTP requests over a serial port, using the NetBurner web server implementation. The example will display a "Hello World" type message on the device's index page: index.html.

An valid HTTP GET request that is compatible with this application is the following:

Note
The webserver expects a double carriage return line feed
`GET /INDEX.HTML HTTP/1.1\r\n\r\n`

The expected response should look similar to the following:

HTTP/1.0 200 OK
Pragma: no-cache
MIME-version: 1.0
Content-Type: text/html
Content-length: 231
<html>
<head><link rel="stylesheet" type="text/css" href="style.css"></head>
<body>
<a href="http://www.netburner.com"><img src="logo.jpg" width="200" height="104" border="0"></a>
<h1>Thank you for NetBurning!</h1>
</body>
</html>