Good lightweight library for HTTP POST/GET for C?

Markus R. picture Markus R. · Feb 8, 2010 · Viewed 29.4k times · Source

I'm planning of creating a Last.FM scrobbler plugin for a music player in Windows. Last.FM submissions API relays on HTTP/1.1 GET and POST.

I've never done Internet oriented programming and I've still to know about the HTTP protocol but I'd like to start playing around with it sending and getting some data. I've looked at the Winsock interface but I don't know if it would be better to use any easier thing.

Do anyone of you know how could I do it? What could I use?

If so, could you point me to a tutorial too?

If it's a library it would be good that I can link statically to it, I would want to supply only the DLL of the plugin.

Answer

Daniel A. White picture Daniel A. White · Feb 8, 2010

LibCurl is one of the most widely used and most portable.