If it is http "DELETE" or "GET", not "POST", it can be 0. :-)
On Thu, Nov 10, 2011 at 3:33 PM, Carsten Haitzler <ras...@rasterman.com> wrote: > On Wed, 9 Nov 2011 18:29:49 +0900 Bluezery <ohpo...@gmail.com> said: > >> Hi, >> >> If data is NULL, curl makes length field as -1 . >> length filed should be set by 0. >> Please review below. > > it's worth a shot. people have been trying to find out how to do 0 byte sized > posts.. it hasnt worked... :) > >> 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 > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ras...@rasterman.com > > ------------------------------------------------------------------------------ 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