Answer the question
In order to leave comments, you need to log in
Why is the MS Server not responding, curlErrorNumber: 52?
There is a problem with the API, the MS server does not respond to the script request via curl, here is an example: https://online.moysklad.ru/api/remap/1.1/entity/pr... At the same time, it opens in the browser, on the test server everything works and other requests on this also work
curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($this->curl, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($this->curl, CURLOPT_USERPWD, $msk_login.":".$msk_password);
curl_setopt($this->curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.2309.372 Safari/537.36');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question