- more descriptive constant names
[m6w6/ext-http] / http_request_api.c
index 748cede..1e74a80 100644 (file)
@@ -71,6 +71,13 @@ STATUS _http_request_global_init(INIT_FUNC_ARGS)
        }
 #endif
 
+#if LIBCURL_VERSION_NUM >= 0x070a05
+       HTTP_LONG_CONSTANT("HTTP_AUTH_BASIC", CURLAUTH_BASIC);
+       HTTP_LONG_CONSTANT("HTTP_AUTH_DIGEST", CURLAUTH_DIGEST);
+       HTTP_LONG_CONSTANT("HTTP_AUTH_NTLM", CURLAUTH_NTLM);
+       HTTP_LONG_CONSTANT("HTTP_AUTH_ANY", CURLAUTH_ANY);
+#endif /* LIBCURL_VERSION_NUM */
+
        return SUCCESS;
 }