Aktualizacja tła Twittera za pomocą interfejsu API

Mam problemy z aktualizacją tła za pomocą interfejsu API Twittera.

$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');

Kiedy próbuję pobrać surowe dane przez cURL lub file_get_contents, otrzymuję to ...

Oczekiwanie nie powiodło się Oczekiwanie podane w polu Oczekiwanie na nagłówek żądania nie może być spełnione przez ten serwer. Wysłany klient Oczekuje: 100-kontynuuj, ale zezwalamy tylko na 100-kontynuację oczekiwania.

questionAnswers(2)

yourAnswerToTheQuestion