X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_object.c;h=be4b77d3f54e770d1b294c5de7eb4f399f53c1f4;hp=09c43a56ae1a527ef59df29fe07057930e601f79;hb=d25403ef573dd14b0d4f749754a0c097f0c62c16;hpb=b1ace11a9604ffcc496d32827aa66a2ba99db5ff diff --git a/http_request_object.c b/http_request_object.c index 09c43a5..be4b77d 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -452,6 +452,15 @@ PHP_MINIT_FUNCTION(http_request_object) zend_declare_class_constant_long(THIS_CE, ZEND_STRS("PROXY_HTTP_1_0")-1, CURLPROXY_HTTP_1_0 TSRMLS_CC); # endif #endif /* WONKY */ + + /* + * Post Redirection Constants + */ +#if HTTP_CURL_VERSION(7,19,1) + zend_declare_class_constant_long(THIS_CE, ZEND_STRS("POSTREDIR_301")-1, CURL_REDIR_POST_301 TSRMLS_CC); + zend_declare_class_constant_long(THIS_CE, ZEND_STRS("POSTREDIR_302")-1, CURL_REDIR_POST_302 TSRMLS_CC); + zend_declare_class_constant_long(THIS_CE, ZEND_STRS("POSTREDIR_ALL")-1, CURL_REDIR_POST_ALL TSRMLS_CC); +#endif return SUCCESS; }