This topic contains 0 replies, has 1 voice, and was last updated by gautamndsl 7 years, 10 months ago.
- Topic
Hi Oro Team,
One of our Magento sites has “Block blank user agents” code in .htaccess as we are losing huge bandwidth against bots123# BLOCK BLANK USER AGENTSRewriteCond %{HTTP_USER_AGENT} ^-?$RewriteRule ^ - [F]Thus, OroCRM is unable to connect Magento results error 500. To solve this we need to set custom user_agent parameter for every time we instantiate a SoapClient object as the following example.
123456$soapclient = new SoapClient('http://www.soap.com/soap.php?wsdl', ['stream_context' => stream_context_create(['http' => ['accept' => 'application/xml'],]),'user_agent' => 'My custom user agent',]);
The forum ‘OroPlatform – How do I? Questions’ is closed to new topics and replies.