tianxiacangshen
V2EX  ›  PHP

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

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