X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_curl.c;fp=php_http_client_curl.c;h=6f9884ef87feff5eb4be102157f274c2b46f9c7e;hp=5c1fecd9b5a52798818569cdf23c3f935fe28050;hb=d9c22b8c6b2c3f6e2e6feffe77f940b3fe20efe5;hpb=4be4fbf8e05455322c854bfc355fbaf9c3906ebf diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 5c1fecd..6f9884e 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -1496,6 +1496,9 @@ static STATUS php_http_client_curl_handler_reset(php_http_client_curl_handler_t } curl_easy_setopt(ch, CURLOPT_URL, NULL); + curl_easy_setopt(ch, CURLOPT_CUSTOMREQUEST, NULL); + curl_easy_setopt(ch, CURLOPT_HTTPGET, 1L); + curl_easy_setopt(ch, CURLOPT_NOBODY, 0L); /* libcurl < 7.19.6 does not clear auth info with USERPWD set to NULL */ #if PHP_HTTP_CURL_VERSION(7,19,1) curl_easy_setopt(ch, CURLOPT_PROXYUSERNAME, NULL);