1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anybody Managed To get The Correct Image With api-secure.recaptcha.net?

Discussion in 'PHP & Perl' started by gimme4free, Jul 26, 2010.

  1. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,884
    Likes Received:
    1,932
    My usual way of getting the images from Recaptcha is by:

    PHP:
    $challenge $site_recaptcha_key."&ajax=1&xcachestop=".$cachestop."&".$extra_challenge_params;
    $challenge_url "http://api.recaptcha.net/challenge?k=".$challenge;
    $challenge_field get_string_between($content,"challenge : '","'");
    $image_url "http://api.recaptcha.net/image?c=".$challenge_field;
    Now I have come across a site that uses api-secure.recaptcha.net and the same procedure doesn't work with the new URL yet the same browser actions are made & I cannot figure out for the life of me how to get the correct image to post onto Decaptcher.

    Anybody successfully getting the correct data + images from Recaptcha within PHP / Non JS environment?
     
    Last edited: Jul 26, 2010
  2. Bots_Do_it_Faster

    Bots_Do_it_Faster Registered Member

    Joined:
    Jun 28, 2010
    Messages:
    64
    Likes Received:
    77
    Occupation:
    Web Developer php and c#
    Location:
    South Florida
    If it is using the api-secure.recaptcha.net have you used:

    Code:
    $image_url = [URL]https://api-secure.recaptcha.net/image?c=" . $challenge_field;[/URL]
    
    The address should be the right one for secure recaptcha, but I can't find a working example to confirm the parameters are correct. If this doesn't work and you pm me a link to a sample site that has it working I can confirm it for you.