I'm trying to create a soap connection PHP 7.2 . My array include "HtmlBody" variable. That include 5000 characters. If I send about 2000 characters, it works on my apache server. But other hosting or other Apache server can send even more than 5000 characters in the same configurations . Can someone help me out?
ini_set('default_socket_timeout', 5000);
ini_set('soap.wsdl_cache_enabled',0);
ini_set('soap.wsdl_cache_ttl',0);
$baglan2 = new \SoapClient("https://api.-----.com/max/post.asmx?WSDL",
array(
'soap_version'=>SOAP_1_2,
'exceptions'=>true,
'keep_alive' => false,
'connection_timeout' => 5000,
'trace'=>1,
'cache_wsdl'=>WSDL_CACHE_NONE,
'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP | SOAP_COMPRESSION_DEFLATE,
"stream_context" => stream_context_create(
array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
),
'http'=> array(
'timeout' => 60,
'ignore_errors' => true,
)
)
)
)
);
$sonuc2 = $baglan2->PostHtml($veriler_PostHtml);