Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/11/2011, 20:49
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Como Recibir Parametro con Curl?

El valor para CURLOPT_POSTFIELDS debe ser array asociativo, no cadena.

Código PHP:
Ver original
  1. curl_setopt($ch, CURLOPT_POSTFIELDS, array('post_str' => $post_str));

Ante cualquier duda, no temas recurrir al manual, es muy efectivo: http://php.net/manual/es/function.curl-setopt.php
__________________
- León, Guanajuato
- GV-Foto