Hi! I'm trying to get the edittoken using a POST call through the next code :
$URL="es.wikipedia.org/w/api.php"; $ch = curl_init( ); curl_setopt($ch, CURLOPT_URL,"http://$URL"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); $poststring["action"] = "query"; $poststring["prop"] = "info|revisions"; $poststring["intoken"] = "edit"; $poststring["titles"] = "Portada"; $data = curl_exec ($ch);
... but I always received the following response : edittoken="+"
anybody knows what's happening?
Thanks.
PD : "Sorry for the last email format :-) ".
_________________________________________________________________ ¿Sigue el calor? Consulta MSN El tiempo http://eltiempo.es.msn.com/