Re: Problem with curl_formadd()

2013-07-23 Thread Byrial Jensen
Den 23-07-2013 22:17, Daniel Stenberg skrev: On Tue, 23 Jul 2013, Byrial Jensen wrote: I have a problem with curl_formadd() which I suspect is a bug: fails with CURLcode 2 (CURLE_FAILED_INIT) which I do not understand. First, this is a minor mistake. curl_formadd() does not return the

Re: Problem with curl_formadd()

2013-07-23 Thread Daniel Stenberg
On Tue, 23 Jul 2013, Byrial Jensen wrote: I have a problem with curl_formadd() which I suspect is a bug: fails with CURLcode 2 (CURLE_FAILED_INIT) which I do not understand. First, this is a minor mistake. curl_formadd() does not return the general libcurl error code! It returns a

Problem with curl_formadd()

2013-07-23 Thread Byrial Jensen
Hi, I am writing a bot to edit www.wikidata.org using libcurl. I have a problem with curl_formadd() which I suspect is a bug: My statement of the form curl_formadd (&post, &last, CURLFORM_PTRNAME, name, CURLFORM_FILECONTENT, "file.txt", CURLFORM_END) fai