#include <sstream>
#include <stdexcept>
+#include <cstdlib>
#include <list>
#include <physfs.h>
#include <sys/stat.h>
char error_buffer[CURL_ERROR_SIZE+1];
- const char* baseUrl = "http://supertux.lethargik.org/addons/index.nfo";
+ const char* baseUrl = "http://supertux.berlios.de/addons/index.nfo";
std::string addoninfos = "";
CURL *curl_handle;
curl_easy_setopt(curl_handle, CURLOPT_NOPROGRESS, 1);
curl_easy_setopt(curl_handle, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt(curl_handle, CURLOPT_FAILONERROR, 1);
+ curl_easy_setopt(curl_handle, CURLOPT_FOLLOWLOCATION, 1);
CURLcode result = curl_easy_perform(curl_handle);
curl_easy_cleanup(curl_handle);