the cURL example given here
http://curl.haxx.se/libcurl/c/getinmemory.html
shows how to get a url to memory. i would like to change the above code to use in c++ without much change. I would like to replace the malloc and realloc with something else. Is there a way to get the above code to work by using an STL like list or vector of strings to save the url to memory?