- add "ipresolve" request option
[m6w6/ext-http] / http_request_object.c
index b9e8af7f37ace2a5434ae77ebe601af8093e22b9..7e110b9a534f76afb6c084933c30625d67ce2062 100644 (file)
@@ -397,6 +397,13 @@ PHP_MINIT_FUNCTION(http_request_object)
        DCL_CONST(long, "VERSION_1_1", CURL_HTTP_VERSION_1_1);
        DCL_CONST(long, "VERSION_NONE", CURL_HTTP_VERSION_NONE);
 
+       /*
+       * DNS IPvX resolving
+       */
+       DCL_CONST(long, "IPRESOLVE_V4", CURL_IPRESOLVE_V4);
+       DCL_CONST(long, "IPRESOLVE_V6", CURL_IPRESOLVE_V6);
+       DCL_CONST(long, "IPRESOLVE_ANY", CURL_IPRESOLVE_WHATEVER);
+
        /*
        * Auth Constants
        */