[twitter-dev] /1/statuses/update.xml 401 error report

2010-09-28 Thread Double K
[ signature base string ]
POSThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses
%2Fupdate.xmloauth_consumer_key%3DUCYA7bKjiJr2hgR2Co3Yww%26oauth_nonce
%3D1dcc43e0b00f1ca41fd4a3563100bf5d%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1285642033%26oauth_token%3D98837972-
gbmV9V0JQPSTzYhTadiJtEH95xlkUcKuYkOULXKXe%26oauth_version
%3D1.0%26status%3Dsetting%2520up%2520my%2520twitter

[ post message ]
 POST /1/statuses/update.xml HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-shockwave-flash, application/vnd.ms-excel, application/
vnd.ms-powerpoint, application/msword, */*
Accept-Language: kr
User-Agent: AQAAAEAwAq7Rcq/
3w9T0xdszjzP6mz4OEMqdD6rvtZhC0oQgNbeKd3Yx7azqoeQRKSC9RbFIDIjLfDMG0VphDh01veXpcg==
X-SKT-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; WIPI 2.0);
240*400;WebUpload 1.0;em1.0
From: 192.168.1.105
X-SKT-Auth-Info: MUFFTV8wMDExNjIwNDQ2MjAxMDA5MjgxMTQ3MDguNTcx
X-SKT-Network-Type: Wi-Fi
X-SKT-Roaming-Info: N
X-SKT-Page-Info: Y
X-SKT-Service-Type: post...@browser
Host: api.twitter.com
Connection: Keep-Alive
Authorization: OAuth oauth_nonce=1dcc43e0b00f1ca41fd4a3563100bf5d,
oauth_signature_method=HMAC-SHA1, oauth_timestamp=1285642033,
oauth_consumer_key=UCYA7bKjiJr2hgR2Co3Yww, oauth_token=98837972-
gbmV9V0JQPSTzYhTadiJtEH95xlkUcKuYkOULXKXe, oauth_signature=Cc2OLR
%2FtsOgZ2T7PRcAHE5jUq%2F8%3D, oauth_version=1.0
X-SKT-Request-Type : FirstPage=YES
Content-Type: application/x-www-form-urlencoded
Content-Length: 34

status=setting%20up%20my%20twitterHTTP/1.1 401 Unauthorized
Date: Tue, 28 Sep 2010 02:47:37 GMT
Server: hi
Status: 401 Unauthorized
WWW-Authenticate: Basic realm=Twitter API
Content-Type: application/xml; charset=utf-8
Content-Length: 135
Cache-Control: no-cache, max-age=1800
Set-Cookie: k=59.150.0.242.1285642057864869; path=/; expires=Tue, 05-
Oct-10 02:47:37 GMT; domain=.twitter.com
Set-Cookie: guest_id=128564205787076014; path=/; expires=Thu, 28 Oct
2010 02:47:37 GMT
Set-Cookie:
_twitter_sess=BAh7CDoHaWQiJWU1NjJmODZlZjRkNDgyNGZjMTZkMzFhYTQwZWMxNjIxIgpm
%250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG
%250AOgpAdXNlZHsAOg9jcmVhdGVkX2F0bCsInPg8VisB--8b8c1a000b464d933df56e83fcec5ed2c33cea3b;
domain=.twitter.com; path=/
Expires: Tue, 28 Sep 2010 03:17:37 GMT
Vary: Accept-Encoding
Connection: close

?xml version=1.0 encoding=UTF-8?
hash
  request/1/statuses/update.xml/request
  errorIncorrect signature/error
/hash

===
i made oauth module.
i success to get access_token.
so i used my xauth module. but i can't do update.
please tell me something wrong.

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] XAuth signature error

2010-09-13 Thread Double K
hi, my name is Kim.
I will make XAuth module. So i need developer help.
i make signature base string
for example

POSThttps%3A%2F%2Fapi.twitter.com%2Foauth
%2Faccess_tokenoauth_consumer_key%3DsGNxxnqgZRHUt6NunK3uw
%26oauth_nonce%3DWLxsobj4rhS2xmCbaAeT4aAkRfx4vSHX4OnYpTE77hA
%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp
%3D1276101652%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth
%26x_auth_password%3D%2525%2526123%2521aZ%252B
%2528%2529456242134%26x_auth_username%3DtpFriendlyGiant

this is dev.twitter.com example
i saw it that oauth_signature is signature base string's hmac-sha1
encoding and base64 encoding's result
oauth_signature=yUDBrcMMm6ghqBEKCFKVoJPIacU%3D
is it right?
i can't do this.
somebody help me. T.T

Q1. i want to know signature base string's hmac-sha1 encoding result.
Q2. oauth-signature=yUDBrcMMm6ghqBEKCFKVoJPIacU%3D is it correct?

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk?hl=en