Have a look at http://code.google.com/p/mongoose/. I think it’s separated in a library that does exactly what you want. It’s written in C, though.
Have a look at http://code.google.com/p/mongoose/. I think it’s separated in a library that does exactly what you want. It’s written in C, though.