“Error Fetching http body” with php SoapClient

后端 未结 2 900
离开以前
离开以前 2021-01-21 02:10

I have some trouble submitting user data to a server by using Soap. All i get is:
Error Fetching http body, No Content-Length, connection closed or chunked data

2条回答
  •  佛祖请我去吃肉
    2021-01-21 02:36

    try PHP 5.3 with

    $client = new SoapClient("< some url  >", 
        array(
            'trace' => 1,
            'stream_context' => stream_context_create(
                array(
                    'http' => array(
                        'protocol_version' => 1.0,
                    ),
                )
            ),
        )
    );
    

提交回复
热议问题