X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_object.c;h=9b0dd91f12d3652160ff3fae37a8712880733c67;hb=370748ba4211ca298fec6706343413888c8b393f;hp=c5fd2936b76688d74f0e1ed7e3e3bd2b969b8e88;hpb=64616c6675baf9dd168a7e2763e3124db0219921;p=m6w6%2Fext-http diff --git a/http_request_object.c b/http_request_object.c index c5fd293..9b0dd91 100644 --- a/http_request_object.c +++ b/http_request_object.c @@ -419,7 +419,9 @@ static inline void _http_request_object_declare_default_properties(TSRMLS_D) /* WebDAV Access Control - RFC 3744 */ DCL_CONST(long, "METH_ACL", HTTP_ACL); - /* cURL HTTP protocol versions */ + /* + * HTTP Protocol Version Constants + */ DCL_CONST(long, "VERSION_1_0", CURL_HTTP_VERSION_1_0); DCL_CONST(long, "VERSION_1_1", CURL_HTTP_VERSION_1_1); DCL_CONST(long, "VERSION_NONE", CURL_HTTP_VERSION_NONE); @@ -431,6 +433,15 @@ static inline void _http_request_object_declare_default_properties(TSRMLS_D) DCL_CONST(long, "AUTH_DIGEST", CURLAUTH_DIGEST); DCL_CONST(long, "AUTH_NTLM", CURLAUTH_NTLM); DCL_CONST(long, "AUTH_ANY", CURLAUTH_ANY); + + /* + * Proxy Type Constants + */ +# if HTTP_CURL_VERSION(7,15,2) + DCL_CONST(long, "PROXY_SOCKS4", CURLPROXY_SOCKS4); +# endif + DCL_CONST(long, "PROXY_SOCKS5", CURLPROXY_SOCKS5); + DCL_CONST(long, "PROXY_HTTP", CURLPROXY_HTTP); #endif /* WONKY */ }