How CURL Login with Captcha and Session

后端 未结 6 2648
终归单人心
终归单人心 2021-02-02 16:58
define(\'COOKIE\', \'./cookie.txt\');
define(\'MYURL\', \'https://register.pandi.or.id/main\');

function getUrl($url, $method=\'\', $vars=\'\', $open=false) {
    $agents =          


        
6条回答
  •  心在旅途
    2021-02-02 17:39

    With PHP I do not know how to do it, you have to get the captcha and find a way to solve it. It has a lot of algorithms to do it for you, but if you want to use java, I already hacked the source code from this link to get the code to solve the captcha and it works very well for a lot of captcha systems.

    So, you could try to implement your own captcha solver, that will take a lot of time, try to find an existing implementation for PHP, or, IMHO, the best option, to use the JDownloader code base.

提交回复
热议问题