Download a file from web

Sorry if the question is too trivial, please bare with me.
I have seen cint socket/ client-server example. I was wondering if there was any way we can write a program using cint library which will download a file on the web (say a text file on a web server) and use that program something like wget app.