[英]Wsdl curl error 7: couldn't connect to host
我在Linux服务器上有一个PHP网站。 我正在使用来自nusphere
网站的nusoap
函数来连接到nusphere
网关。 几个月我都没问题,但是最近我遇到了以下错误。
Error: wsdl error: Getting https://www.something.com:27635/eservice.asmx?wsdl - HTTP ERROR: cURL ERROR: 7: couldn't connect to host
我联系了我的Linux主机服务器,并要求他们为telnet提供地址和端口27635。以下是结果
root@ns3 [~]# telnet www.something.com 27635
Trying 212.80.nn.nn...
Connected to www.something.com (212.80.nn.nn).
Escape character is '^]'.
Connection closed by foreign host.
root@ns3 [~]# wget https://www.something.com:27635
--2012-10-23 10:54:46-- https://www.something.com:27635/
Resolving www.something.com... 212.80.nn.nn
Connecting to www.something.com|212.80.nn.nn|:27635... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4740 (4.6K) [text/html]
Saving to: `index.html.1'
似乎连接正常。
非常感谢。
最后! 我找到了解决方案。
几周前,我更改了一些使用gzip压缩的PHP程序。
我在程序的开头插入了ob_start("ob_gzhandler")
,但是我忘了把ob_flush()
放在它们的末尾。
因此,存在一些嵌套的输出缓冲。
除了我的使用CURL的WSDL eservice程序以外,所有程序都没有问题。
产生卷曲错误7或28。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.