tianxiacangshen
V2EX  ›  PHP

这段 reCAPTCHA 完全没错啊,为什么总是获取不到谷歌返回的数据

  •  1
     
  •   tianxiacangshen · Jun 26, 2017 · 4063 views
    This topic created in 3271 days ago, the information mentioned may be changed or developed.

    返回一片空白

    $post_data="secret=Secret_key&response=".$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR'] ; $ch=curl_init();
    curl_setopt($ch,CURLOPT_URL,"https://www.google.com/recaptcha/api/siteverify"); curl_setopt($ch,CURLOPT_POST,true); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_HTTPHEADER,array('Content-Type: application/x-www-form-urlencoded; charset=utf-8','Content-Length:'.strlen($post_data))); curl_setopt($ch,CURLOPT_POSTFIELDS,$post_data); $googresp=curl_exec($ch);
    $decgoogresp=json_decode($googresp); curl_close($ch); p($decgoogresp);

    10 replies    2019-01-14 11:03:02 +08:00
    iyuli
        1
    iyuli  
       Jun 26, 2017 via Android
    有梯子不
    tianxiacangshen
        2
    tianxiacangshen  
    OP
       Jun 26, 2017
    @iyuli 有的,我是在网站上部署这个验证码,按照官方步骤部署的,按要求提交了 post,但是收不到返回数据,返回时一片空白
    golmic
        3
    golmic  
       Jun 26, 2017
    你想破解掉 google 的验证码么? 5000 元求方案、、
    tianxiacangshen
        4
    tianxiacangshen  
    OP
       Jun 26, 2017
    @golmic 不是,我英文站上部署啊亲,从来没想过打谷歌的主意,靠谷歌吃饭呢
    l12ab
        5
    l12ab  
       Jun 26, 2017
    去掉 header 那一段试试
    knightdf
        6
    knightdf  
       Jun 27, 2017
    @golmic 曾经有人用语音识别破解,不知道现在还可行不
    VgV
        7
    VgV  
       Jun 27, 2017
    不忍直视 header 那段
    yachiyo
        8
    yachiyo  
       Jun 27, 2017
    状态码呢?
    fffflyfish
        9
    fffflyfish  
       Jul 1, 2017
    @golmic @knightdf
    呐,你们要的谷歌验证码破解方案 ![]( http://gmp4.dwstatic.com/1726/8882817845.mp4)
    bixchen
        10
    bixchen  
       Jan 14, 2019
    这么久过去了。想问一下你解决了没有。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2811 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.