Image upload with status


#1

Anyone have an idea about status/update endpoint with image upload(param-media_ids) in java without using client library?

And i used this:

POST /1.1/statuses/update_with_media.json HTTP/1.1
Host: api.twitter.com
User-Agent: Go http package
Content-Length: 15532
Authorization: OAuth oauth_consumer_key="…", oauth_nonce="…", oauth_signature="…", oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1347058301”, oauth_token="…", oauth_version="1.0"
Content-Type: multipart/form-data;boundary=cce6735153bf14e47e999e68bb183e70a1fa7fc89722fc1efdf03a917340
Accept-Encoding: gzip

–cce6735153bf14e47e999e68bb183e70a1fa7fc89722fc1efdf03a917340
Content-Disposition: form-data; name=“status” Hello 2012-09-07 15:51:41.375247 -0700 PDT!
–cce6735153bf14e47e999e68bb183e70a1fa7fc89722fc1efdf03a917340

Content-Type: application/octet-stream
Content-Disposition: form-data; name=“media_ids” [567890235454890]
–cce6735153bf14e47e999e68bb183e70a1fa7fc89722fc1efdf03a917340–

but it doesn’t works… i got the error message as “could not authenticate you” ,code:32


#2

@RajiitGct

Did you got this issue fixed??

If so please let me know how it is done, as I’m facing the same issue…