Hi, I am trying to move elmdentica's blocking curl usage over to ecore_con_url's non-blocking usage, but I'm running into some problems.
In my code I have: res = asprintf(&request->url, "%s://%s:%d%s/statuses/retweet/%lld.json", proto, domain, port, base_url, *(long long int*)data); repeat = ecore_con_url_new(request->url); if(repeat) { ecore_con_url_verbose_set(repeat, EINA_TRUE); if(!ecore_con_url_httpauth_set(repeat, screen_name, password, EINA_TRUE)) printf("Failed httpauth\n"); ecore_event_handler_add(ECORE_CON_EVENT_URL_COMPLETE, print_it, repeat); if(!ecore_con_url_send(repeat, "", 0, NULL)) printf("Failed send\n"); } else printf("ecore_con_url, what's up??????\n"); When I press the button that fires that code, I get *only* the following (should be a lot more due to curl's verbose setting): [...@roque elmdentica]$ ./src/elmdentica * Closing connection #0 Failed send The POST I send needs to be a POST but carries no data. Looking at the code, it would seem a POST is done only when data is sent (hence my "" rather than a NULL). Talking of which, should this be applied then? [...@roque ecore]$ svn diff src/lib/ecore_con/ecore_con_url.c Index: src/lib/ecore_con/ecore_con_url.c =================================================================== --- src/lib/ecore_con/ecore_con_url.c (revision 55557) +++ src/lib/ecore_con/ecore_con_url.c (working copy) @@ -859,7 +859,10 @@ curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDS, data); curl_easy_setopt(url_con->curl_easy, CURLOPT_POSTFIELDSIZE, length); + curl_easy_setopt(url_con->curl_easy, CURLOPT_POST, 1L); } + else + curl_easy_setopt(url_con->curl_easy, CURLOPT_POST, 0L); switch (url_con->time_condition) { Rui ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel