Python Forum

Full Version: NEED HELP WITH REQUEST PACKAGE
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to build an automated solution for accessing a captcha‐protected website (specifically IRCTC) using HTTP requests instead of a full browser. I want to display the live captcha image—i.e. the one generated for the current session by the server—in my application (for example, in a Tkinter GUI) so that a user can manually enter the captcha and submit the form. I've tried fetching the captcha from a dedicated endpoint and even by "pinging" the live signup page using different headers for each action (session initialization, captcha fetching, form submission), but I end up with a mismatch: the captcha I display isn't what the server expects when I submit the form.

I'm also curious if this approach (fetching and displaying the live captcha for manual solving) can be implemented in other languages like .NET/C# or C++.
Hi there,

well, it pretty obvious that the captcha on the whatever site you try to access works: it prevents an (semi-) automated access like you are trying to implement.

Except this, you post lacks of a Python-centered question. You describe what you do, but this doesn't result in a question nor is any code shown... So: what type of help would you like to see?

The only real question "... can be implemented in other languages like .NET/C# or C++." is off-topic here, as the forum is all about Python and Python only. Question like this may be better raised on multi programming language forum like Stackoveflow.

Regards, noisefloor