mpop Posted July 13, 2010 Share Posted July 13, 2010 I have a question. I got this code curl_setopt($ch, CURLOPT_URL, "http://unsite/login.php"); curl_setopt($ch, CURLOPT_POSTFIELDS, "user=user&pass=pass"); $xxx = curl_exec($ch); curl_setopt($ch, CURLOPT_URL, "http://unsite/email.php"); $xxx = curl_exec($ch); curl_setopt($ch, CURLOPT_URL, "http://unsite/email.php"); $xxx = curl_exec($ch); curl_setopt($ch, CURLOPT_URL, "http://unsite/email.php"); $xxx = curl_exec($ch); Now, first time i use curl_exec($ch) it will try to log in the site, second time it will log in the site and the follow the link "hxxp://unsite/email.php", third time log in again and and go for two times on the link "hxxp://unsite/email.php"? Or, first time it log in, second it follow the link, third follow the link again, ans so on? I just want to know if every time i use curl_exec() function will it log in the site? Link to comment https://forums.phpfreaks.com/topic/207617-curl-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.