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.
_________________________________________________________________ Llega la nueva temporada. Consulta las nuevas tendencias en MSN Estilo http://estilo.es.msn.com/moda/