0

我在 linux 服务器上有一个 PHP 网站。我正在使用网站上的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'

似乎连接正常。

非常感谢。

4

1 回答 1

0

最后!我找到了解决方案。

几周前,我更改了一些 PHP 程序以使用 gzip 压缩。

ob_start("ob_gzhandler")我在程序的开头插入了,但我忘记了放在ob_flush()它们的末尾。

所以有一些嵌套的输出缓冲。

除了我使用 CURL 的 WSDL eservice 程序之外,所有程序都没有问题。

它生成 curl 错误 7 或 28。

于 2012-10-25T11:23:12.080 回答