+#ifdef HTTP_HAVE_PERSISTENT_HANDLES
+# define HTTP_CURL_SHARE_CTOR(ch) (SUCCESS == http_persistent_handle_acquire("http_request_datashare", &(ch)))
+# define HTTP_CURL_SHARE_DTOR(chp) http_persistent_handle_release("http_request_datashare", (chp))
+#else
+# define HTTP_CURL_SHARE_CTOR(ch) ((ch) = curl_share_init())
+# define HTTP_CURL_SHARE_DTOR(chp) curl_share_cleanup(*(chp)); *(chp) = NULL