Author: akv
Date: 2010-06-05 00:12:33 +0200 (Sat, 05 Jun 2010)
New Revision: 3418

Modified:
   trunk/plugins/output-picasa/rs-picasa-client.c
Log:
Added CURL debug.

Modified: trunk/plugins/output-picasa/rs-picasa-client.c
===================================================================
--- trunk/plugins/output-picasa/rs-picasa-client.c      2010-06-04 22:03:52 UTC 
(rev 3417)
+++ trunk/plugins/output-picasa/rs-picasa-client.c      2010-06-04 22:12:33 UTC 
(rev 3418)
@@ -15,6 +15,8 @@
 #include "rs-picasa-client.h"
 #include "conf_interface.h"
 
+//#define CURL_DEBUG TRUE
+
 #define PICASA_LOGIN_URL "https://www.google.com/accounts/ClientLogin";
 #define PICASA_DATA_URL "http://picasaweb.google.com/data/feed/api";
 #define HTTP_BOUNDARY "5d0ae7df9faf6ee0ae584d7676ca34d0" /* md5sum of 
"Rawstudio2PicasaWebAlbums" */
@@ -228,6 +230,10 @@
        curl_easy_setopt(picasa_client->curl, CURLOPT_WRITEDATA, data);
         curl_easy_setopt(picasa_client->curl, CURLOPT_HTTPHEADER, header);
 
+#ifdef CURL_DEBUG
+        curl_easy_setopt(picasa_client->curl, CURLOPT_VERBOSE, TRUE);
+#endif
+
         CURLcode result = curl_easy_perform(picasa_client->curl);
        handle_curl_code(result);
        
@@ -279,6 +285,10 @@
        curl_easy_setopt(picasa_client->curl, CURLOPT_WRITEDATA, data);
         curl_easy_setopt(picasa_client->curl, CURLOPT_HTTPHEADER, header);
 
+#ifdef CURL_DEBUG
+        curl_easy_setopt(picasa_client->curl, CURLOPT_VERBOSE, TRUE);
+#endif
+
         CURLcode result = curl_easy_perform(picasa_client->curl);
        handle_curl_code(result);
 
@@ -318,6 +328,10 @@
        curl_easy_setopt(picasa_client->curl, CURLOPT_POSTFIELDS, body);
         curl_easy_setopt(picasa_client->curl, CURLOPT_POSTFIELDSIZE, 
strlen(body));
 
+#ifdef CURL_DEBUG
+        curl_easy_setopt(picasa_client->curl, CURLOPT_VERBOSE, TRUE);
+#endif
+
         CURLcode result = curl_easy_perform(picasa_client->curl);
        handle_curl_code(result);
 
@@ -360,6 +374,10 @@
        curl_easy_setopt(picasa_client->curl, CURLOPT_WRITEFUNCTION, 
write_callback);
        curl_easy_setopt(picasa_client->curl, CURLOPT_WRITEDATA, data);
 
+#ifdef CURL_DEBUG
+        curl_easy_setopt(picasa_client->curl, CURLOPT_VERBOSE, TRUE);
+#endif
+
         CURLcode result = curl_easy_perform(picasa_client->curl);
        handle_curl_code(result);
 


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to