使用 PHP 时尝试连接到 FedEx Ship Service API 时出错
我决定将联邦快递运输服务集成到我的一个在线应用程序中。 我从 FedEX 开发人员中心下载了示例 PHP 代码。 但是当我尝试使用 ShipGroundDomestic.php5 时,我收到错误。 我根据我的规格修改了该文件 插入凭据。 但我无法让它发挥作用。 我收到以下错误,
故障 代码:HTTP 字符串:无法连接到主机
我已确保不存在文件路径问题& 其他相关问题。 但我不断收到此错误。 我想知道你们中是否有人使用过这个& 就会知道如何解决这个问题。 我尝试联系联邦快递人员,但没有帮助。
I had decided to integrate FedEx Shipping Service into one of my online apps.
I downloaded a sample PHP code from the FedEX developer center. But when I tried to work with the ShipGroundDomestic.php5 I am getting error. 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
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否进行过数据包捕获以查看您是否正在生成/发送数据包或者在此之前是否失败。 如果无法生成数据包,请检查以确保应用程序正确解析 URL。
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.
当您使用代理服务器时会出现此问题。
This problems occurs when your are using Proxy Server.