if (request->body && (request->meth != HTTP_GET) && (request->meth != HTTP_HEAD) && (request->meth != HTTP_OPTIONS)) {
switch (request->body->type)
{
+ case HTTP_REQUEST_BODY_EMPTY:
+ /* nothing */
+ break;
+
case HTTP_REQUEST_BODY_CSTRING:
HTTP_CURL_OPT(POSTFIELDS, request->body->data);
HTTP_CURL_OPT(POSTFIELDSIZE, request->body->size);
#ifdef HTTP_HAVE_CURL
+#define HTTP_REQUEST_BODY_EMPTY 0
#define HTTP_REQUEST_BODY_CSTRING 1
#define HTTP_REQUEST_BODY_CURLPOST 2
#define HTTP_REQUEST_BODY_UPLOADFILE 3