X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=e9d39d7c0425ab7e8b5ac4495c6553249d32afb8;hp=496a63ed8d4e735cf057dfaf5ac2307b6323877b;hb=d19eb84fa85cc82c46b943b49d906714e0a9b3c5;hpb=a0bca521b491711e43aef74fe19c23a8eb4d0777 diff --git a/http_request_api.c b/http_request_api.c index 496a63e..e9d39d7 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -15,28 +15,21 @@ #ifdef HAVE_CONFIG_H # include "config.h" #endif -#include "php.h" + +#define HTTP_WANT_CURL +#include "php_http.h" #ifdef HTTP_HAVE_CURL -#include "php_http.h" -#include "php_http_std_defs.h" #include "php_http_api.h" #include "php_http_request_api.h" #include "php_http_request_method_api.h" #include "php_http_url_api.h" + #ifdef ZEND_ENGINE_2 # include "php_http_request_object.h" #endif -#include "phpstr/phpstr.h" - -#ifdef PHP_WIN32 -# include -#endif - -#include - /* {{{ cruft for thread safe SSL crypto locks */ #if defined(ZTS) && defined(HTTP_HAVE_SSL) # ifdef PHP_WIN32 @@ -1041,7 +1034,7 @@ static inline void _http_curl_defaults(CURL *ch) HTTP_CURL_OPT(FOLLOWLOCATION, 0); HTTP_CURL_OPT(UNRESTRICTED_AUTH, 0); HTTP_CURL_OPT(REFERER, NULL); - HTTP_CURL_OPT(USERAGENT, "PECL::HTTP/" HTTP_PEXT_VERSION " (PHP/" PHP_VERSION ")"); + HTTP_CURL_OPT(USERAGENT, "PECL::HTTP/" PHP_EXT_HTTP_VERSION " (PHP/" PHP_VERSION ")"); HTTP_CURL_OPT(HTTPHEADER, NULL); HTTP_CURL_OPT(COOKIE, NULL); HTTP_CURL_OPT(COOKIEFILE, NULL);