View source code
Display the source code in etc/c/curl.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Enum etc.c.curl.CurlFormAdd

Use this for multipart formpost building

enum CurlFormAdd : int { ... }

Returns code for curl_formadd()

Enum members

NameDescription
disabled libcurl was built with this disabled
illegal_array
incomplete
last
memory
null_ptr
ok first, no error
option_twice
unknown_option

Returns

  • 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

Authors

License