This is a simple http server written in java How to use:
- Compile and Run this WebServer.java
- open a browser and type "http://127.0.0.1:8000" in the URL bar.
- You will see a 404 error page! Congrats! Your server is working fine.
- Try to put anything like a mp3 file into the directory where you store the WebServer.java.(e.g. hello.mp3)
- type "http://127.0.0.1:8000/hello.mp3" in the browser, and you will hear the song!