Actualización de fondo de Twitter a través de API
Estoy teniendo problemas para actualizar los fondos a través de la API de Twitter.
$target_url = "http://www.google.com/logos/11th_birthday.gif";
$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:'));
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
curl_setopt($ch, CURLOPT_URL,$target_url);
curl_setopt($ch, CURLOPT_FAILONERROR, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10);
$html = curl_exec($ch);
$content = $to->OAuthRequest('http://twitter.com/account/update_profile_background_image.xml', array('profile_background_image_url' => $html), 'POST');
Cuando intento extraer los datos sin procesar a través de cURL o file_get_contents, obtengo esto ...
Expectativa fallida La expectativa dada en el campo Esperar encabezado de solicitud no pudo ser cumplida por este servidor. El cliente envió Expect: 100-continue pero solo permitimos la expectativa de 100-continue.