[英]Error trying to connect to FedEx Ship Service API when using PHP
I had decided to integrate FedEx Shipping Service into one of my online apps. 我决定将FedEx Shipping Service集成到我的一个在线应用程序中。 I downloaded a sample PHP code from the FedEX developer center.
我从FedEX开发人员中心下载了示例PHP代码。 But when I tried to work with the ShipGroundDomestic.php5 I am getting error.
但是,当我尝试使用ShipGroundDomestic.php5时,出现错误。 I modified the file according to my specifications & plugged in the credentials.
我根据自己的规范修改了文件并插入了凭据。 But I am unable to make it work.
但是我无法使其正常工作。 I am getting following error,
我遇到以下错误,
Fault Code:HTTP String:Could not connect to host 错误代码:HTTP字符串:无法连接到主机
I have made sure that there are no file path issues & other related issues. 我确保没有文件路径问题和其他相关问题。 But I am constantly getting this error.
但是我一直在收到这个错误。 I was wondering if any of you guys have worked with this & would know how to resolve this.
我想知道你们中是否有人为此工作过并且知道如何解决这个问题。 I tried contacting the FedEx guys but its unhelpful.
我尝试与FedEx的人员联系,但无济于事。
Have you done a packet capture to see if you are generating/sending packets or if it fails before that. 您是否进行过数据包捕获,以查看您是在生成/发送数据包还是在此之前失败。 If it fails to generate packets then check to make sure the app is resolving the URL properly.
如果无法生成数据包,请检查以确保该应用程序正确解析了URL。
当您使用代理服务器时,会发生此问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.