This was an issue for me when the api.php was located at http://www.domain.com/api.php instead of http://domain.com/api.php but the latter would redirect to the former.
This was an issue for me when the api.php was located at http:// www.domain. com/api. php instead of http:// domain. com/api. php but the latter would redirect to the former.