Re: libcurl(?) bug

From: Date: Tue, 09 Feb 2021 12:42:09 +0000
Subject: Re: libcurl(?) bug
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-327482@lists.php.net to get a copy of this message
On 2/9/21 1:30 PM, Christoph M. Becker wrote:
  // NOK:   curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: /\r\n"));
I don't think that CURLOPT_HTTPHEADERs are supposed to have a trailing CRLF.
However, I agree with you on that, since it breaks a previously correctly working code, it still looks like a bug. Unless the backward compatibility intentionally should not be kept for any reason. Am I wrong? t

« previous php.general (#327482) next »