switch (request->meth)
{
case HTTP_GET:
+ HTTP_CURL_OPT(CUSTOMREQUEST, NULL);
HTTP_CURL_OPT(NOBODY, 0);
HTTP_CURL_OPT(POST, 0);
HTTP_CURL_OPT(UPLOAD, 0);
break;
case HTTP_HEAD:
+ HTTP_CURL_OPT(CUSTOMREQUEST, NULL);
HTTP_CURL_OPT(POST, 0);
HTTP_CURL_OPT(UPLOAD, 0);
HTTP_CURL_OPT(HTTPGET, 0);
break;
case HTTP_POST:
+ HTTP_CURL_OPT(CUSTOMREQUEST, NULL);
HTTP_CURL_OPT(UPLOAD, 0);
HTTP_CURL_OPT(HTTPGET, 0);
HTTP_CURL_OPT(NOBODY, 0);
break;
case HTTP_PUT:
+ HTTP_CURL_OPT(CUSTOMREQUEST, NULL);
HTTP_CURL_OPT(HTTPGET, 0);
HTTP_CURL_OPT(NOBODY, 0);
HTTP_CURL_OPT(POST, 0);
RETURN_FALSE;
}
- if (meth >= HTTP_GET && meth <= HTTP_PUT) {
- getObject(http_request_object, obj);
- curl_easy_setopt(obj->request->ch, CURLOPT_CUSTOMREQUEST, NULL);
- }
-
UPD_PROP(long, method, meth);
RETURN_TRUE;
}