L
L
lol_vova2017-06-22 00:45:34
PHP
lol_vova, 2017-06-22 00:45:34

How to get and submit captcha via cURL?

There is a site that you need to log in to ( https://newauction.com.ua/auth). I do it in php using cURL. Usually, authorization is successful, but if you enter the wrong password several times, then a captcha will eventually pop up. So my question is how to load the page, get the captcha, enter its value in the form, send it back to the script and send POST data to the same page so that the captcha does not change? I tried to do this: I load the page, while passing cookies. This is where a captcha is generated and stored in cookies. Then I download the captcha image, display it along with the form and enter its value in the form, which I enter later. Then I send a request to the POST page with the entered captcha and cookies

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2017-06-22
@profesor08

And what prevents you from entering only the correct data? Save your data, and then check before sending.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question