Error fetching http headers in SoapClient

前端 未结 15 1032
抹茶落季
抹茶落季 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条回答
  •  Happy的楠姐
    2020-12-08 19:22

    I had this problem and I checked, and in my case, was the Firewall. The PHP not show the error correctly. To perform the request, the Firewall answered:

    HTTP/1.1 200 OK
    Content-Type: text/html; charset=utf-8
    ...
    Direct Access IP is not allowed
    ...
    
    

    The SoapClient expects the SOAP envelope but receives a HTML code. That's why PHP responds with: "Error Fetching Http Headers" because it can not understand what he received in response. To resolve the problem, contact your network administrator to verify if there is any Firewall, NAT or proxy getting in the way and then ask them to make the necessary arrangements.

提交回复
热议问题