cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem with curl_formadd()

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 23 Jul 2013 22:17:12 +0200 (CEST)

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 CURLFORMcode and a 2 there equals
CURL_FORMADD_OPTION_TWICE ...

> Is this a bug or did I do something wrong?

It is quite clearly a bug, and I've attached my suggested patch for fixing
this problem.

Comments?

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2013-07-23