PHP cUrl添加随机字符,删除最后一个

PHP cUrl添加随机字符,删除最后一个,php,curl,formatting,response,Php,Curl,Formatting,Response,我们有4台服务器运行相同的API。当我尝试使用PHP(5.4.12)cUrl(7.29.0)在每台服务器上调用相同的服务时,无论何时调用,其中只有一个服务会给出预期的响应: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><temporaryToken><token>1EDBABA96F1E98E2165571AAF5239808</token></

我们有4台服务器运行相同的API。当我尝试使用PHP(5.4.12)cUrl(7.29.0)在每台服务器上调用相同的服务时,无论何时调用,其中只有一个服务会给出预期的响应:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><temporaryToken><token>1EDBABA96F1E98E2165571AAF5239808</token></temporaryToken></response>

是我触发了这种奇怪的情况,还是我们的服务器之间存在差异,而我们可能错过了这些差异?

您是否在请求中发送了任何可提及的标题?
$this->aHeader
的内容可能会引起人们的兴趣。恐怕没有什么奇怪的地方,它只包含“内容类型:application/xml”和一个自定义标题,格式为“authToken:fvtjhw41jqxw2s8jiz2d5e7f5”。
ã<?xml version="1.0" encoding="UTF-8" standalone="yes"?><response><temporaryToken><token>B319990DE262D75DD3E6B455741BB1C7</token></temporaryToken></response
curl_setopt( $ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, $this->aHeader);
curl_setopt($ch, CURLOPT_FRESH_CONNECT, true);
curl_setopt($ch, CURLOPT_TIMEOUT, $this->iTimeoutRequest);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->iTimeoutRequest);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);