I have a simple GET request in PHP using cURL. It is using basic auth for authentication.
However when the {username}:{password} is longer than 266 characters, it appears to be getting truncated. I looked everywhere but haven't found any documentation stating this. Is it just me?
$data = curl_init($url);
curl_setopt($data, CURLOPT_USERPWD, $username . ":" . $password);
curl_setopt($data, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
$results = curl_exec($data);
echo $results;
curl_close($data);