Hi,

If data is NULL, curl makes length field as -1 .
length filed should be set by 0.
Please review below.

Index: src/lib/ecore_con/ecore_con_url.c
===================================================================
--- src/lib/ecore_con/ecore_con_url.c   (리비전 64937)
+++ src/lib/ecore_con/ecore_con_url.c   (작업 사본)
@@ -695,7 +695,9 @@ _ecore_con_url_send(Ecore_Con_Url *url_c
              curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDS, data);
              curl_easy_setopt(url_con->curl_easy,
CURLOPT_POSTFIELDSIZE, length);
           }
-        else if (mode == MODE_POST)
+        else curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, 0);
+
+        if (mode == MODE_POST)
           {
              curl_easy_setopt(url_con->curl_easy, CURLOPT_POST, 1);
           }
@@ -1373,7 +1375,7 @@ _ecore_con_url_perform(Ecore_Con_Url *ur
    url_con->active = EINA_TRUE;
    curl_multi_add_handle(_curlm, url_con->curl_easy);
    curl_multi_perform(_curlm, &still_running);
-
+
    completed_immediately = _ecore_con_url_process_completed_jobs(url_con);

    if (!completed_immediately)


Thanks,
Kim
Index: src/lib/ecore_con/ecore_con_url.c
===================================================================
--- src/lib/ecore_con/ecore_con_url.c	(리비전 64937)
+++ src/lib/ecore_con/ecore_con_url.c	(작업 사본)
@@ -695,7 +695,9 @@ _ecore_con_url_send(Ecore_Con_Url *url_c
              curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDS, data);
              curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, length);
           }
-        else if (mode == MODE_POST)
+        else curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, 0);
+
+        if (mode == MODE_POST)
           {
              curl_easy_setopt(url_con->curl_easy, CURLOPT_POST, 1);
           }
@@ -1373,7 +1375,7 @@ _ecore_con_url_perform(Ecore_Con_Url *ur
    url_con->active = EINA_TRUE;
    curl_multi_add_handle(_curlm, url_con->curl_easy);
    curl_multi_perform(_curlm, &still_running);
-   
+
    completed_immediately = _ecore_con_url_process_completed_jobs(url_con);
 
    if (!completed_immediately)
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to