I'm fairly new to CURL and I was able to fetch individual files like this:
$c_session = curl_init();
curl_setopt ($c_session, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($c_session, CURLOPT_URL, $uri);
curl_setopt ($c_session, CURLOPT_TIMEOUT, '12');
$content = curl_exec($c_session);
curl_close ($c_session);
Now I need to be able to list directories and download them using CURL. The catch is I need to connect to an HTTP server and not an FTP one.