Ver Mensaje Individual
  #4 (permalink)  
Antiguo 12/11/2011, 20:53
vito25
 
Fecha de Ingreso: marzo-2008
Mensajes: 63
Antigüedad: 16 años, 1 mes
Puntos: 0
Respuesta: Como Recibir Parametro con Curl?

Cita:
Iniciado por Triby Ver Mensaje
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
Gracias por la correción,


Pero sigo con la duda, como recibo el parámetro en servidor 2

intente con:

Código PHP:
$input $_POST['post_str']; 

Pero no funciona