M
M
Maxim2016-10-14 23:16:36
PHP
Maxim, 2016-10-14 23:16:36

Why VK API doesn't accept captcha?

♦ Problem:
Contact does not accept CAPTCHA
♦ Problem:
I am writing a PHP script to edit groups. Some methods (note: groups.edit) after a couple of calls start to give a Captcha Needed error. The picture is guessed through anti-gate and sent also via PHP with the necessary parameters, but a new Captcha arrives in response and the request does not pass (although other methods accept everything perfectly with exactly the same scheme). I tried both through CURL with different headers and settings and through file_get_contents, the result is always the same - the captcha is solved correctly, the request is correct, but the VK API gives a new picture.
The trick is that when sending similar requests through JS, everything goes without problems and the captcha is accepted (it is also solved through anti-gate).
♦ Question:
How to solve this problem and implement the same in PHP?
I would be very grateful for help in solving the problem, I am even ready to pay

Answer the question

In order to leave comments, you need to log in

4 answer(s)
M
Maxim, 2016-10-23
@MaxStrate

Все решено. Проблема была в моей невнимательности. В одном моменте получалось так, что капча попадала в кавычки и отправлялась на сервер в этих кавычках, соответственно поэтому и не принималась.
Спасибо всем за помощь в решении проблемы)

X
xmoonlight, 2016-10-14
@xmoonlight

Проверяйте временные счётчики и отработку событий на JS!

Александр Аксентьев, 2016-10-15
@Sanasol Куратор тега PHP

https://github.com/S-anasol/VK

Кирилл Жиляев, 2016-10-15
@kirill_782

Проверьте запрос перед отправкой. Проверьте правильность капчи от анигейта. vk api без разницы какой скрипт шлет ему запросы.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question