If you want to learn a little bit more about the communication between a web browser and an HTTP server, why not build your own web server and take a closer look.
Bash is known for admin utilities and text manipulation tools, but the venerable command shell included with most Linux systems also has some powerful commands for manipulating binary data.