Hi,

based on the TWITTER API helppage I tried the following statement
(lets assume username:testaccount with password=password):

$pic_update='curl -u testaccount:password -F image=@'01.png;type=image/
png' http://twitter.com/account/update_profile_image.xml';
print $pic_update;

But, this did not work.

Can anybody help. Thanks, Alex


On Oct 21, 12:02 pm, Leon Spencer <spencer_l...@yahoo.com> wrote:
> Hi.
>
> Please try one of the existing Perl-based Twitter API libraries:
>
> http://apiwiki.twitter.com/Libraries#Perl
>
> But for background
>
> Curl & Perl 
> example:http://www.dagblastit.com/https_post/perl_curl_https_post.html
>
> Twitter API account/update_profile_image 
> method:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-account%C2%A0up...
>
> Make sure you set the content-type appropriately (mime type for the image 
> format) then include the raw image data per Twitter API 
> account/update_profile_image method.
>
> Leon
>
> ________________________________
> From: apfelmaennchen <alexander.grefr...@gmail.com>
> To: Twitter Development Talk <twitter-development-talk@googlegroups.com>
> Sent: Wed, October 21, 2009 2:40:58 AM
> Subject: [twitter-dev] upload new profile_picture to Twitter via perl script
>
> Hi, can anybody help me with a perl statement, which uploads the file
> 'test.jpg' to the TWITTER profile?
>
> I was thinking about some CURLing.
>
> Thanks so much, Alex

Reply via email to