Hi I`m getting strange errors on using update_profile_background_image
API call (see curl dump below)

The uploaded image size is 10Kb.
Also i`ve tried to use
  mqpro_glowdotsGray.br.jpg;type=image/jpeg
and
    mqpro_glowdotsGray.br.jpg;type=image/jpg
notations and go the same result.

Using the same code for   update_profile_image call works perfectly.

What i`m doing wrong? Or is there any active issues related to this
API?

curl -v -F 'image=@/path/to/image/twallpapers/backgrounds/thumbs/
mqpro_glowdotsGray.br.jpg' --header 'Expect:' -u mylogin:mypassword
http://twitter.com/account/update_profile_background_image.xml
* About to connect() to twitter.com port 80
*   Trying 128.121.146.100... connected
* Connected to twitter.com (128.121.146.100) port 80
* Server auth using Basic with user 'mylogin'
> POST /account/update_profile_background_image.xml HTTP/1.1
> Authorization: Basic [hidden]
> User-Agent: curl/7.15.5 (i686-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b 
> zlib/1.2.3 libidn/0.6.5
> Host: twitter.com
> Accept: */*
> Content-Length: 10662
> Content-Type: multipart/form-data; 
> boundary=----------------------------5a35eee9279a
>
< HTTP/1.1 403 Forbidden
< Date: Fri, 15 May 2009 08:32:17 GMT
< Server: hi
< Last-Modified: Fri, 15 May 2009 08:32:17 GMT
< Status: 403 Forbidden
< Pragma: no-cache
< Cache-Control: no-cache, no-store, must-revalidate, pre-check=0,
post-check=0
< Content-Type: application/xml; charset=utf-8
< Content-Length: 203
< Expires: Tue, 31 Mar 1981 05:00:00 GMT
< X-Revision: e8cdf86372da838f4cb112e826cddcd374bcee16
< X-Transaction: 1242376337-96911-6692
< Set-Cookie: lang=; path=/
< Set-Cookie:
_twitter_sess=BAh7CToJdXNlcmkE7PAFAToTcGFzc3dvcmRfdG9rZW4iLTFjZGViYWQ2Yzhm
%250ANTBhZTE5ODExNWJjMmJhNTUxNTFiZmI1NDIxNjQ6B2lkIiVhOTlhMWViNDU4%250AMTdmNzJlMjdmNzY2MTllN2JhZGRmYSIKZmxhc2hJQzonQWN0aW9uQ29udHJv
%250AbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsABjoKQHVzZWR7AA%253D
%253D--13dd462896dfa3b13448f4535612802942248a82; domain=.twitter.com;
path=/
< Vary: Accept-Encoding
< Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<hash>
  <request>/account/update_profile_background_image.xml</request>
  <error>There was a problem with your background image. Probably too
big.</error>
</hash>
* Closing connection #0

Reply via email to