1b.app
Link copied -

Rest API not working after update

Возникают сложность с работой API?
На сегодняшний день доступна новая версия API! Посмотреть новую версию API
Hello.
The problem is old.
Adding a PSU via the API was configured.
After buying licenses (a year ago), my box was transferred to their server and a problem was discovered: BPs were no longer created by request (correct request):
"https://ps24crm.ru/api/orders/add/?login=restapi&password=***************&am... order&source=Cme&name=Pit-Stop24 Callme!&clientphone=+7 (121)2121212&clientnamefirst=Petya&comments=test / Call the wizard"
The developers of OneBox proposed a crutch that worked fine - to form requests not through the host name, but through the IP address:
"https://62.113.114.98/api/orders/add/?login=restapi&password=*************&a... order&source=Cme&name=Pit-Stop24 Callme!&clientphone=+7 (121)2121212&clientnamefirst=Petya&comments=test / Call the wizard"
And this option worked before the MPV update. Now it doesn't work either.
The request was sent both through file_get_co
Original question is available on version: ru

Answers:

ISSUE RESOLVED.
Maybe someone will be useful.
It turned out that only the request sent from one server required www. in front of the host!! (https://www.ps24crm.ru), otherwise the response was a 301 redirect.
I checked from other servers - there were no redirects, the same request returned code 200 with a host without www - https://ps24crm.ru
Some damn thing.
12.11.2020, 08:39
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment