Bitty HTTP

Home

1Welcome

Bitty HTTP is a small lightweight web server designed be used in small microcontrollers, but powerful enough to be used with large embedded processors and even embedded into larger programs.

If you are looking for small, simple, easy to use HTTP server with minimal dependencies then you have found what you are looking for.

Bitty HTTP is licensed under the MIT License (see License.txt). This means you are free to use this software however you want as long as you keep the copyright notice.

Download the latest version and get started today!

Download 1.4...

2Other Projects That Work With Bitty HTTP

WebC

WebC makes working with HTML in C much easier. It works by letting you write C code mixed in with your HTML, changing between the two on the fly. The WebC compiler then converts your mixed C & HTML into C code which you then compile with your normal C compiler.

For example this WebC program outputs a calendar. Note how easy it is to change between HTML and C.

<?wc
#include <time.h> #include <stdio.h> #include <string.h> /* Jan 2022 */ #define MONTH (0) // 0=Jan #define YEAR (2022-1900) // 1900 based void OutputCal(void) { char buff[100]; time_t thetime; struct tm start; int r,w; const int DaysInMonth[12]={31,28,31,30,31,30,31,31,30,31,30,31}; memset(&start,0x00,sizeof(start)); start.tm_mday=1; start.tm_mon=MONTH; start.tm_year=YEAR; /* Get the week day */ thetime=mktime(&start)-timezone; start=*gmtime(&thetime);
?>
<!doctype html> <html> <head> <title>Calendar</title> </head> <body> <table> <tr> <th>Sun</th><th>Mon</th><th>Tue</th><th>Wed</th><th>Thu</th><th>Fri</th><th>Sat</th> </tr> <tr>
<?wc
/* Output the cal */ if(start.tm_wday>0) { sprintf(buff,"<td colspan='%d'></td>",start.tm_wday); wcecho(buff); } w=start.tm_wday; for(r=0;r<DaysInMonth[start.tm_mon];r++) { sprintf(buff,"<td>%d</td>",r+1); wcecho(buff); w=(w+1)%7; if(w==0) wcecho("</tr>\n<tr>"); }
?>
</tr> </table> </body> </html>
<?wc
}
?>

This will then get converted into a C program that you can compile. The compiled program will output HTML (which can be sent to Bitty HTTP)

Swing by http://webcprecompiler.com to check it out!