L
L
largotek2014-09-09 21:49:23
.NET
largotek, 2014-09-09 21:49:23

I can't log in to the site using C#, how to fix it?

Hello dear forum users.
There is a problem with which I can not cope for the second day already ..
There is a site, you need to register on it. ( http://joblab.ru)
Requesting a page

HttpWebRequest myHttpWebRequest = (HttpWebRequest)HttpWebRequest.Create("http://joblab.ru/access.php");

I manually enter the captcha, of course I fill in all the cookies and user agents.
Next, I make a post request. And nothing. More precisely, he sends me back a page where it says that supposedly I entered the captcha incorrectly. But nothing like that. Since when I logged in in the browser, in the fiddler I compared the request from the browser and from the program, just one to one (well, except for cookies, of course) only in the browser it is immediately authorized and not from the program !!!!
I will be very grateful if you point me to a bright idea, otherwise I don’t know what to do myself ... (
UPD:
As I understand it, there is a dynamically generated captcha, and I can’t even imagine how to bypass it.
That is, I load the page, there is one picture , then I find the url of the picture, I download the picture - and here is a bummer, this is another picture, how to get around?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DancingOnWater, 2014-09-10
@DancingOnWater

It is necessary to recognize the captcha, there are no other options.

A
AlexP11223, 2014-09-10
@AlexP11223

That is, I load the page, there is one picture, then I find the url of the picture, download the picture - and here is a bummer, this is another picture, how to get around?

No, if you do this in a normal browser, then of course it will (and usually the one that was loaded last will work then), but when loading using HttpWebRequest, it does not load any images itself, so you only need to download it once and should load.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question