Looking at the page source of the login page, it looks as if the target URL is correct, so possibly the site is doing some additional verification to see whether you’re a proper login or not. Maybe in an attempt to prevent exactly what you’re trying to do. Can you expand on “not work”?
Thanks for your reply.
I get message Cannot login for this code. May i ask which $target URL is correct ?
This site login not need verification (by captcha or…) , just using username and password.
Please help me to add the missing code.
so my guess is that the DFX.Authentication.login() call actually does the work, so it’s a case of finding that function and replicating what it does.
BUT - as this is user authentication and logging in to what I presume is a paid web site, there’s a strong possibility that they’ll have taken many, many steps to prevent you from logging in with your own code. You might also find that if you’ve paid for access, their terms and conditions might prevent you from what you’re trying to do.
Do they not offer an API to retrieve whatever data you’re trying to retrieve? The trouble with replicating their login procedures in code is that they can change them any time they want to, then you need to write some more code to try to get around them. Using an API usually means they won’t do that.