Jump to content

Curl problem


mpop

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.