Error fetching http headers in SoapClient

前端 未结 15 1036
抹茶落季
抹茶落季 2020-12-08 18:50

I\'m trying to invoke a WS over https on a remote host:remote port and I get:

Error fetching http headers

using the PHP5 SoapCli

15条回答
  •  借酒劲吻你
    2020-12-08 19:27

    None of the above techniques worked for me.

    When I analyzed the request header from __getLastRequestHeaders, I saw the following:

    POST /index.php/api/index/index/?SID=012345 HTTP/1.1 Host: www.XYZ.com

    The API URL I had been using was different, like www.ABC.com. I changed the API URL to www.XYZ.com/index.php/api?wsdl, and then it worked.

    Both URLs returned the same WSDL from the same server, but only one allowed login.

提交回复
热议问题