X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_curl_api.h;h=586259e41ed885af4f7902f8da594d614125c94d;hp=085509e1ef7ee44bb50fd3daa8309da2d2a3022b;hb=2253ca28b6a5699a8e2d62a0458ced3cb7a3107a;hpb=e26d1af5bcad6068bcd4854693d6a1fa12d7912d diff --git a/php_http_curl_api.h b/php_http_curl_api.h index 085509e..586259e 100644 --- a/php_http_curl_api.h +++ b/php_http_curl_api.h @@ -18,15 +18,13 @@ #ifndef PHP_HTTP_CURL_API_H #define PHP_HTTP_CURL_API_H -#include -#include "zend_ini.h" +#include "php_http_std_defs.h" -/* override arg_separator.output to "&" for data used in outgoing requests */ -#define HTTP_URL_ARGSEP_OVERRIDE zend_alter_ini_entry("arg_separator.output", sizeof("arg_separator.output") - 1, "&", 1, ZEND_INI_ALL, ZEND_INI_STAGE_RUNTIME) -#define HTTP_URL_ARGSEP_RESTORE zend_restore_ini_entry("arg_separator.output", sizeof("arg_separator.output") - 1, ZEND_INI_STAGE_RUNTIME) +#ifdef PHP_WIN32 +# include +#endif -/* CURL buffer size */ -#define HTTP_CURLBUF_SIZE 16384 +#include #define http_get(u, o, i, d, l) _http_get_ex(NULL, (u), (o), (i), (d), (l) TSRMLS_CC) #define http_get_ex(c, u, o, i, d, l) _http_get_ex((c), (u), (o), (i), (d), (l) TSRMLS_CC) @@ -57,4 +55,5 @@ PHP_HTTP_API STATUS _http_post_curldata_ex(CURL *ch, const char *URL, struct cur * End: * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 - */ \ No newline at end of file + */ +