P
P
pa5htet2019-04-15 08:48:18
JSON
pa5htet, 2019-04-15 08:48:18

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

1 answer(s)
P
pa5htet, 2019-04-16
@pa5htet

Answer:
curl_init()
--//--
curl_close
before each API call

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question