Hi Pankaj, On Mar 21, 2:33 am, Pankaj Jain <[email protected]> wrote: > '_content' => '' > '_headers' => HTTP::Headers=HASH(0xa43900) > 'content-length' => 0 > 'content-type' => 'application/x-www-form-urlencoded' > 'listening to podcast - vv show #52 - sam wyly of maverick capital, green mountain energy, michaels store and sterling software from greg...' => undef ... > '_method' => 'POST' > '_uri' => URI::https=SCALAR(0x92b600) > -> 'https://twitter.com/status/update.xml? > oauth_consumer_key=YhurMAbhrLPFXlCJzmyTVw&oauth_nonce=9djqyE1O6mx5ua4s&oauth_signature= > %2FrIlSXU3ti0wTq6vdgKk4qrxkuU%3D&oauth_signature_method=HMAC- > SHA1&oauth_timestamp=1237573818&oauth_version=1.0'
Try moving all parameters (OAuth stuff and your status -- which shouldn't be in the header, btw) into the content (body) part of the POST request. And don't add the Authorization header, if you're thinking about it. :) my $req = POST "https://twitter.com/status/update.xml", %misc_headers, Content => [ %parms ]; where %parms contains 'oauth_*' => OAuth values, and 'status' => 'listening to podcast...'. If you use this syntax, make sure the keys and values of %parms are NOT pre-urlencoded. HTH, Alex
