help me about curl function

waldopulanco29

New Member
Messages
14
Reaction score
0
Points
0
i want to retrieve my user id using my php script. there was a time it needs a verification code for anti bot check!! but often it will not need to verify the code. but there a times it will need. and this is my problem, when i directly visit the page using my browser there is no verify code, but when i use my script to visit the page it will need a verify code. im using file_get_contents(). but now i change to curl function so i save the cookie then my script will act as a browser, but no effect it will need verify code.

please analyse my script and fix it.

PHP:
$file_path = 'cookies.txt';

$agent = 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13';

$ch = curl_init("http://yt8i12224ll43.yopmail.com/en/mail.php?id=me_ZGNjAGV5ZQR0ZGZjZQNjZQN1AGx2ZN==");

curl_setopt ($ch, CURLOPT_USERAGENT, $agent);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_COOKIEJAR, $file_path);

$HTTP_Response = curl_exec($ch);

curl_close($ch);


echo $HTTP_Response;

thanks in advance!!!
 
Last edited:

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
I don't think we have the option to use curl. Also, you seem to be going about this a very convoluted way.
 
Top