MathewWi / twitcurl

Automatically exported from code.google.com/p/twitcurl
0 stars 0 forks source link

Sometimes Twitter returns "incorrect signature" error. #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by go.cuevo...@gmail.com on 5 Nov 2010 at 2:09

GoogleCodeExporter commented 9 years ago
I'm sorry but unable to delete or modify a report posted once!
Anyway, description of the issue is below.

- What steps will reproduce the problem?
1. call twitCurl::statusUpdate()

- What is the expected output?
status is updated and Twitter returns information of an account and the status.

- What do you see instead?
status is not updated and Twitter returns "incorrect signature" error.

- What version of the product are you using? On what operating system?
rev.12 on Windows

- Please provide any additional information below.
http://code.google.com/p/twitcurl/source/browse/trunk/oauthlib.cpp#411
I think this line should be
std::string base64Str = base64_encode( strDigest, 20 );

Original comment by go.cuevo...@gmail.com on 5 Nov 2010 at 2:21

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for reporting this! Yes, SHA1 digest length should be 20. I have changed 
it now.

Thanks...

Original comment by swatkat....@gmail.com on 6 Nov 2010 at 2:56

GoogleCodeExporter commented 9 years ago

Original comment by swatkat....@gmail.com on 6 Mar 2011 at 3:59