Reply to Re: HMAC-SHA1 ARGG!!!!!

Your name:

Reply:


Posted by cbmeeks on 04/10/07 19:36

Thanks. Actually, after some more digging I found that stripcslashes
did the trick. It was those damn \n causing problems.

http://www.signaldev.com






On Apr 10, 4:45 am, Umberto Salsi <s...@icosaedro.italia> wrote:
> "cbmeeks" <cbme...@gmail.com> wrote:
> > [...]
>
> A test program like this one should help you to detect the problem:
>
> <?php
> header("Content-Type: text/plain");
>
> $expected = "PUT bla bla ...";
> $actual = (string) $_POST["data"];
>
> echo
> "Expected = ", urlencode($expected), "\n",
> "Actual = ", urlencode($actual), "\n";
>
> if( $expected === $actual )
> echo "Test: equals\n";
> else
> echo "Test: DIFFERS\n";
>
> # ...and a similar code for the $expected_hmac and $actual_hmac
> ?>
>
> Regards,
> ___
> /_|_\ Umberto Salsi
> \/_\/ www.icosaedro.it

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация