I am using php curl to complete some question answer task, then to save my work, i need to enter captcha. So , i need to log in manually into the site to enter captcha and save my work.
But i want to display the captcha image in my script, after completion of my task and after entering the captcha walue, it will send the captcha value and submit my work.
The final page has many images, whose src's are like:
I want to display the image having src
Captcha.jsp and entire attribute details are
<img width="120" src="Captcha.jsp"></img>
How to extract that specific image ? By extracting, i don't mean its alt, src, dimensions etc. But want the exact image to be displayed. I think these codes are needed :
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
Help me sorting out this, Just tell me how to extract that specific image ?