Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 713081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:55:16+00:00 2026-05-14T04:55:16+00:00

$page = $curl->post($baseUrl.’/submit.php’, array(‘url’=>$address,’phase’=>’1′,’randkey’=>$randKey[0],’id’=>’c_1’)); $exp = explode(‘recaptcha_image’,$page); The id recaptcha_image is not found although

  • 0
$page = $curl->post($baseUrl.'/submit.php', array('url'=>$address,'phase'=>'1','randkey'=>$randKey[0],'id'=>'c_1'));
$exp = explode('recaptcha_image',$page);

The id recaptcha_image is not found although if i echo $page; the webpage will be displayed and surprisingly even the recpatcha div (with the image itself). Curl shouldn’t load the image for recaptcha but somehow it does though when i try to find the div, it is not there. Is there a way to capture the url of the recaptcha image?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:55:16+00:00Added an answer on May 14, 2026 at 4:55 am

    You’ll want to use an HTML parser like this PHP Simple HTML DOM Parser.
    Something like this will work then:

    <?php
    $page = $curl->post($baseUrl.'/submit.php', array('url'=>$address,'phase'=>'1','randkey'=>$randKey[0],'id'=>'c_1'));
    $html->load($page);
    $ret = $html->find('script[src^=http://api.recaptcha.net/]',0);
    $src = $ret->src;
    //I'm not sure how you get an url with your library, so this might or might not work
    $page = $curl->get($src);
    preg_match("%challenge\ :\ '([a-zA-Z0-9-_]*)',%", $page, $matches);
    $img = "http://api.recaptcha.net/image?c=".$matches[1];
    ?>
    

    This first fetches the page, parses it for the script URL, then opens that URL for the challenge which is then appended to the URL itself. The image will be in the $img variable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing a PHP cURL post, using a complete URL (http://www.mysite.com), from one page
I need to POST some data to a PHP page using cURL, and the
i'm trying to make post to an external url using curl, the externa page
I am trying to curl post with php The page I am trying to
I am trying to setup a php page which uses cURL to hit a
I'm trying to use Curl in PHP to read a unreliable web page. The
Is it possible to monitor a page's AJAX calls via cURL in PHP? For
I made a script to post comments on a page. I have used PHP
I'm trying to use cURL to post data to the form on this URL:
I'm trying to use cURL to post data to the form on this URL:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.