So, maybe post what the script outputs, and then tell us part-by-part why/how it is the same. You obviously haven't done this.
There is a difference in generating the signature string that I spot from reading the documentation and your code, but you will have to find it yourself. This is called "debugging" and I expect you to make a honest try at it.
In reply to Re^10: Invalid nonce
by Corion
in thread Invalid nonce
by frank1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |