stephenalistoun
01-03-2009, 11:38 AM
Hi all,
I'm trying to post my values from my login form to the punbb form using curls.
How would I trick the punbb forum in the time taken?
I get the following message how would I prevent this problem?
"Unable to confirm security token. A likely cause for this is that some time passed between when you first entered the page and when you submitted a form or clicked a link. If that is the case and you would like to continue with your action, please click the Confirm button. Otherwise, you should click the Cancel button to return to where you were."
$Curl_Session = curl_init('http://www.punbb.co.za/Forums/register.php');
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
curl_setopt ($Curl_Session,
CURLOPT_POSTFIELDS, "req_username=Gascan&req_email1=steve@gmail.com&req_password1=gascan&req_password2=gascan");
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
curl_exec ($Curl_Session);
curl_close ($Curl_Session);
Thanks Stephen
I'm trying to post my values from my login form to the punbb form using curls.
How would I trick the punbb forum in the time taken?
I get the following message how would I prevent this problem?
"Unable to confirm security token. A likely cause for this is that some time passed between when you first entered the page and when you submitted a form or clicked a link. If that is the case and you would like to continue with your action, please click the Confirm button. Otherwise, you should click the Cancel button to return to where you were."
$Curl_Session = curl_init('http://www.punbb.co.za/Forums/register.php');
curl_setopt ($Curl_Session, CURLOPT_POST, 1);
curl_setopt ($Curl_Session,
CURLOPT_POSTFIELDS, "req_username=Gascan&req_email1=steve@gmail.com&req_password1=gascan&req_password2=gascan");
curl_setopt ($Curl_Session, CURLOPT_FOLLOWLOCATION, 1);
curl_exec ($Curl_Session);
curl_close ($Curl_Session);
Thanks Stephen