-
1Download BittyHTTP
Download the latest version from http://bittyhttp.com/Download.html
-
2Uncompress the tar.gz
The examples are made for Linux but should work on any POSIX OS.
tar -xzf BittyHTTP1_4.tar.gz
-
3Enter the Bitty HTTP source directory
cd BittyHTTP/src
-
4Compile the hello world example
gcc main.c SocketsCon.c WebServer.c Examples/HelloWorld/FileServer.c -o HelloWorld.exe
-
5Run the example
./HelloWorld.exe
-
6Browse the web page
The example will start listening for your web browser on TCP port 3000.
Open your web browser and enter the following URL:
http://localhost:3000
You will now see the web page served from the example program.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.