#include "php_http.h"
#include "php_http_api.h"
#include "php_http_curl_api.h"
+#include "php_http_std_defs.h"
#ifdef ZEND_ENGINE_2
# include "ext/standard/php_http.h"
PHP_ME(HTTPi_Request, send, NULL, ZEND_ACC_PUBLIC)
PHP_ME(HTTPi_Request, getResponseData, NULL, ZEND_ACC_PUBLIC)
- PHP_ME(HTTPi_Request, getResponseHeaders, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(HTTPi_Request, getResponseHeader, NULL, ZEND_ACC_PUBLIC)
+ PHP_ME(HTTPi_Request, getResponseCode, NULL, ZEND_ACC_PUBLIC)
PHP_ME(HTTPi_Request, getResponseBody, NULL, ZEND_ACC_PUBLIC)
PHP_ME(HTTPi_Request, getResponseInfo, NULL, ZEND_ACC_PUBLIC)
efree(HTTP_G(ctype));
HTTP_G(ctype) = NULL;
}
+
#ifdef HTTP_HAVE_CURL
if (HTTP_G(curlbuf).data) {
efree(HTTP_G(curlbuf).data);
HTTP_G(curlbuf).free = 0;
}
#endif
+
return SUCCESS;
}
/* }}} */