Yeah, I've seen this libcurl before. But I don't think it makes any sense if there's no other way to do it. I mean, why would my teacher ask it if the only thing I can do is use a huge library developed by other people than me?
Besides, I'd use just few functions/methods/whatever.