Skip to content
Advertisement

Tag: libcurl

How to get list of files in directory smb libcurl?

I’m trying to get a list of files in the directory with libcurl from the SMB server. But I have a error: If I try to get the file then everything will be okay: Answer It is not currently supported by libcurl. It is however mentioned in the TODO as something that we’d like to see added one day.

I want to write a function that retrieves a webpage

I’m trying to write a function that returns the html code of a specified URL here’s my code so far: only the first success string is printed: success here’s my writememorycallback: the same code when embedded into the body of the main function works just fine. Answer If only the first string success is printed out then something probably went

popen (“tar xvf tarball.tar”) works in debug but not release builds

I’m working on a C++ program for Ubuntu that downloads a tar archive using curl_easy_perform, and after the archive is downloaded into /tmp I use popen to execute the appropriate tar command line. When I run my program’s debug build then popen(“tar xvf /tmp/example.tar -C /tmp/existingdir”) works, but when I run this command in release builds the popen call always

Advertisement