Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 24, 2005, 6:01 pm
rate this thread
I've been trying to write a short script using curl w/ php but can't
figure something out:
I'm simply trying to login to a website using a posted user/pass combo
to an html form (login.php) that, if correct, sends a Header("Location:
The problem I'm running into is when I successfully login, i'm watching
the logs and it's actually executing success.php but after that's done
the screen just refreshes and stays on login.php... does this have
anything to do with the session variables that are written to tell the
system that I should be logged in?
Does this make sense? Below are my opts.
$ch = curl_init();
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_fields);
Thanks a ton,