[drakma-devel] puri error during HTTP request

Edi Weitz edi at agharta.de
Fri Jun 15 20:31:53 UTC 2007


On Fri, 15 Jun 2007 21:32:41 +0200, Nicolas Lamirault <lam at tuxfamily.org> wrote:

> i make some test with Drakma and the Audioscrobbler API.  for the
> identification, the protocol is :
>                                                                                                                   
> http://post.audioscrobbler.com/?hs=true&p=1.2&c=<client-id>&v=<client-ver>&u=<user>&t=<timestamp>&a=<auth>                                                      
>                                                                                                                   
> with auth : The algorithm for generating this token is as follows:                                                
> token := md5(md5(password) + timestamp) 
>
> Parse error:URI "http://post.audioscrobbler.com/?hs=true&p=1.2&c=tst&v=1.0&u=lam_&t=2007-06-15 21:29:54&a=
,’÷¯*²h|I3ð”È" contains illegal character #\  at position 77.
>    [Condition of type PURI:URI-PARSE-ERROR]

That's clearly an illegal URI, so PURI is right to complain.  I have
never heard of Audioscrobbler, but they probably mean the
/hexadecimal/ MD5 representation or something like that.



More information about the Drakma-devel mailing list