Dynamically load url in libcurl with C++
View Single Post
Not RTFM is what you're doing wrong.
The actual URL to deal with. The parameter should be a char * to a zero terminated string.
A string is NOT a char * to a zero terminated string. However, x.c_str() is, so that would be the solution.