http_request_init_ex(&request, NULL, HTTP_POST, URL);
request.body = &body;
if (SUCCESS == http_request_prepare(&request, options?Z_ARRVAL_P(options):NULL)) {
- request.body = NULL;
http_request_exec(&request);
if (info) {
http_request_info(&request, Z_ARRVAL_P(info));
}
RETVAL_RESPONSE_OR_BODY(request);
}
+ request.body = NULL;
http_request_dtor(&request);
}
/* }}} */
http_request_init_ex(&request, NULL, HTTP_POST, URL);
request.body = &body;
if (SUCCESS == http_request_prepare(&request, options?Z_ARRVAL_P(options):NULL)) {
- request.body = NULL;
http_request_exec(&request);
http_request_body_dtor(&body);
if (info) {
RETVAL_RESPONSE_OR_BODY(request);
}
http_request_body_dtor(&body);
+ request.body = NULL;
http_request_dtor(&request);
}
/* }}} */
http_request_init_ex(&request, NULL, HTTP_PUT, URL);
request.body = &body;
if (SUCCESS == http_request_prepare(&request, options?Z_ARRVAL_P(options):NULL)) {
- request.body = NULL;
http_request_exec(&request);
- http_request_body_dtor(&body);
if (info) {
http_request_info(&request, Z_ARRVAL_P(info));
}
RETVAL_RESPONSE_OR_BODY(request);
}
http_request_body_dtor(&body);
+ request.body = NULL;
http_request_dtor(&request);
}
/* }}} */
http_request_init_ex(&request, NULL, HTTP_POST, URL);
request.body = &body;
if (SUCCESS == http_request_prepare(&request, options?Z_ARRVAL_P(options):NULL)) {
- request.body = NULL;
http_request_exec(&request);
if (info) {
http_request_info(&request, Z_ARRVAL_P(info));
}
RETVAL_RESPONSE_OR_BODY(request);
}
+ request.body = NULL;
http_request_dtor(&request);
}
/* }}} */