It is necessary in the iOS application to receive captcha from the site . The request for this captcha is as follows: https://www.reestr-zalogov.ru/Captcha/Generate?t=434094d8047d470db4fb792f7aa84e59 where t is the token. However, in open form, it seems, is not transmitted anywhere. How can I get it, tell me?

PS: apparently, the link to the captcha is valid only once, after which when you go to this URL you can see only a black square instead of a picture with a captcha, that is, the token should change every time, as I understand it.

    1 answer 1

    There, by pressing a button, a POST request is sent to https://www.reestr-zalogov.ru/Captcha/Init , without any parameters, and with an empty body.

    And the server sends the answer JSON, with reference to the captcha picture with the token, plus the token separately:

     { "HasError" : false, "ImageUrl" : "/DefaultCaptcha/Generate?t=1234567890abcdef1234567890abcdef", "Token" : "1234567890abcdef1234567890abcdef" }