| 
	
 | 
 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] 
 |