Tag : php , By : user152423
Date : March 29 2020, 07:55 AM
I hope this helps you . Further to our comments exchange, you will need to do some debugging - try this, then write what you see in comments below. I will update this answer once I have seen your comment. $api_url = 'https://api.fax.ir/v1/accounts/selfe';
$accessToken = get_option('faxir_access_token');
$ch = curl_init($api_url);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer '.$accessToken,
'x-faxir-clientid: '.$this->client_id
));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_VERBOSE,1);
$output = curl_exec($ch);
echo "Code:".curl_getinfo($ch, CURLINFO_HTTP_CODE)."<br>";
echo "Error Number:".curl_errno($ch)."<br>";
echo "Error String:".curl_error($ch);
curl_close($ch);
echo $output;
|
Tag : http , By : Cube_Zombie
Date : March 29 2020, 07:55 AM
To fix this issue would it be wrong to send back a 406 Not Acceptable in such case?
|
Date : March 29 2020, 07:55 AM
hop of those help? Please see description of the issue in github.com/docker-library/php/issues/832 Tldr; debian uses ancient 2.5y old curl package while other platforms are using newer versions. There must be a bug that's causing this.
|
Date : March 29 2020, 07:55 AM
|
Date : March 29 2020, 07:55 AM
|