Web Api Calls 2

Asked

Viewed 70 times

0

Well, I have a somewhat boring task that is the handling of Cookies, I make a request by sending as parameter a code that I want to access, my API opens the page with Webdriver, maps and takes the url of the captcha image. I take this captcha to Android and it renders the image.

After rendering this image, I write the image data and post on my server. This is where the problem lives, I send the code the first time with GET and the server spits me a random image, how do I associate this random image to my POST?

The image tries to demonstrate with the questions what I want to understand if it will happen or not.

inserir a descrição da imagem aqui

  • Complicated that the api does not maintain status, what you can do, but I do not know if it is the best option, is with Oauth token, you add the key of captcha as a Claim, after you put the result using this token in the header of the request, and compares the reported value with the key stored in the Claim. But anyway, there may be better possibilities.

  • This captcha (just like any captcha) has a code that identifies it, for the captcha server to know if the answer is correct or not, sometimes it is a cookie, a field that goes along with the answer, a token in the URL, etc, you can’t reuse this to identify which captcha it is ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.