The OpenD Programming Language

CurlFormAdd

Use this for multipart formpost building

Returns code for curl_formadd()

Values

ValueMeaning
ok

first, no error

memory
option_twice
null_ptr
unknown_option
incomplete
illegal_array
disabled

libcurl was built with this disabled

last

Return Value

  • CURL_FORMADD_OK on success
  • CURL_FORMADD_MEMORY if the FormInfo allocation fails
  • CURL_FORMADD_OPTION_TWICE if one option is given twice for one Form
  • CURL_FORMADD_NULL if a null pointer was given for a char
  • CURL_FORMADD_MEMORY if the allocation of a FormInfo struct failed
  • CURL_FORMADD_UNKNOWN_OPTION if an unknown option was used
  • CURL_FORMADD_INCOMPLETE if the some FormInfo is not complete (or error)
  • CURL_FORMADD_MEMORY if a curl_httppost struct cannot be allocated
  • CURL_FORMADD_MEMORY if some allocation for string copying failed.
  • CURL_FORMADD_ILLEGAL_ARRAY if an illegal option is used in an array

Meta