curl php HTTP/2 stream 0 was not closed cleanly
I am trying to send a request using cURL and PHP and it throws an error. HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1) I am sending CURLOPT_HTTP_VERSION like this curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_2_0); cURL info printed with curel_version() is Array ( [version_number] => 475136 [age] => 4 [features] => 11518877 [ssl_version_number] => 0 [version] => 7.64.0 [host] => x86_64-apple-darwin18.2.0 [ssl_version] => OpenSSL/1.0.2q [libz_version] => 1.2.11 [protocols] => Array ( [0] => dict [1] => file [2] => ftp [3] => ftps [4] => gopher [5] => http [6] =>