Error fetching http headers in SoapClient

前端 未结 15 1038
抹茶落季
抹茶落季 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:14

    Please check for the response HTTP-Header. In my case, the following header was set on the API-Site:

    
        Header set Connection keep-alive
    
    

    It seems like the PHP SoapClient can't deal with that option. As a result, the response body was empty, but content-length in the response-header has been set correctly.

    Remove that line or change it to "close" solved my issue.

提交回复
热议问题