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%A0update_profile_image

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