[英]Restful php client not working on server but works fine in localhost
i need build a restful client on php. 我需要在php上构建一个Restful客户端。 i have used pest class which is available on github.
我使用了可以在github上找到的有害生物类。 my client is working fine on localhost where the web service is hosted on a remote server.
我的客户端在将Web服务托管在远程服务器上的localhost上运行良好。 but when i uploaded the code to another server it returns timeout.
但是,当我将代码上传到另一台服务器时,它将返回超时。 I havent used any extension php (dll files).
我还没有使用任何扩展名php(dll文件)。 what can be the issue.
可能是什么问题。 please help me.
请帮我。 thanx.
谢谢。
How does it execute it's web requests? 它如何执行网络请求? (Sockets, file_get_contents, curl?) I'd imagine it's an issue of not allowing outbound requests.
(套接字,file_get_contents,curl?)我想这是不允许出站请求的问题。 In that case, contact the server admin and ask them.
在这种情况下,请与服务器管理员联系并询问他们。 Try using a demo curl script to see if you can contact google and pull down its index page, that will tell you if you are allowed out bound requests.
尝试使用演示curl脚本,看看是否可以联系google并下拉其索引页面,该页面将告诉您是否允许绑定请求。 I had this issue before, where my server was denied outbound requests and just had no results.
我之前遇到过这个问题,我的服务器被拒绝出站请求,但是没有结果。 I would think the server-admin would be able to help here.
我认为服务器管理员可以在这里提供帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.