diff --git a/src/imlib.c b/src/imlib.c
index 4bbc196de5eb156578722282860bcac7f8cb654c..6d718f56cf33508f7c6c610d1355dd9c53ce5eb8 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -265,6 +265,9 @@ char *feh_http_load_image(char *url)
 	if (fd != -1) {
 		sfp = fdopen(fd, "w+");
 		if (sfp != NULL) {
+#ifdef DEBUG
+			curl_easy_setopt(curl, CURLOPT_VERBOSE, 1);
+#endif
 			curl_easy_setopt(curl, CURLOPT_URL, url);
 			curl_easy_setopt(curl, CURLOPT_WRITEDATA, sfp);
 			ebuff = emalloc(CURL_ERROR_SIZE);