Ver Mensaje Individual
  #12 (permalink)  
Antiguo 13/01/2015, 10:48
Avatar de victor5atodogas
victor5atodogas
 
Fecha de Ingreso: junio-2010
Mensajes: 447
Antigüedad: 13 años, 10 meses
Puntos: 2
Respuesta: Error Api Strava

Hola de nuevo:

Al final no se exactamente donde puede estar el error pero al crear otra función de prueba me ha funcionado correctamente:

Código PHP:
Ver original
  1. protected function request2($url, $parameters = array(), $request = false)
  2.         {
  3.             $ch = curl_init();
  4.             curl_setopt($ch, CURLOPT_URL,$url);
  5.             curl_setopt($ch, CURLOPT_POST, 1);
  6.             curl_setopt($ch, CURLOPT_POSTFIELDS, $parameters);
  7.             curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);            
  8.             $response = curl_exec ($ch);            
  9.             curl_close ($ch);
  10.            
  11.             return $this->parseResponse($response);        
  12.         }

por lo que ya queda solucionado el tema.

Muchas gracias por la ayuda.