I make a call to get request tokens for my app using the below api.
“https://api.twitter.com/oauth/request_token”
I send all the required parameters and I get the request tokens.
But for past 2-3 days I am seeing some issue when I make a call to get request tokens.
When i tried to debug the issue I found that if there is “+” symbol in the oauth_signature, I get error response like “Failed to validate signature and token - 401”
For example :- oauth_signature is “kPYkvmczGB6A8TcKGSYumahbvzw” i get the request tokens - no issues.
oauth_signature is “ognkYrbz1lXxWBJWSm+PUvJ9FT8=” I get the error response.
I did tried many times and got to conclusion that “+” symblo in the oauth_signature is the issue.
I am seeing this issue for past two days only.
I am using javascript library to generate the oauth_signature.(shah1.js)
In the wiki page “+” and “/” are valid symbols in the oauth_signature.
I need to demo/submit my app on March 1st to my team and can you please help me fix this issue. I don’t want to show this inconsistent behavior to my team 
This is code which I am using to generate the signature.
function core_hmac_sha1(key, data)
{
var bkey = str2binb(key);
if(bkey.length > 16) bkey = core_sha1(bkey, key.length * chrsz);
var ipad = Array(16), opad = Array(16);
for(var i = 0; i < 16; i++)
{
ipad[i] = bkey[i] ^ 0x36363636;
opad[i] = bkey[i] ^ 0x5C5C5C5C;
}
var hash = core_sha1(ipad.concat(str2binb(data)), 512 + data.length * chrsz);
return core_sha1(opad.concat(hash), 512 + 160);
}
function binb2hex(binarray)
{
var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
var str = "";
for(var i = 0; i < binarray.length * 4; i++)
{
str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) +
hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF);
}
return str;
}
function b64_hmac_sha1(key, data){ return binb2b64(core_hmac_sha1(key, data));}
data = GET&https%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_callback%3Dhttp%253A%252F%252Ftweetoffline.appspot.com%252FTwitter-Authorize.html%26oauth_consumer_key%3DDPunrpPrUKshHXGj2VXv4w%26oauth_nonce%3DRT7K5w%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1361543572%26oauth_version%3D1.0"
key = XXXXXXX
Thanks,
Mohan