[mb-devel] Using the Webservice Digest Authentication

Paul Taylor paul_t100 at fastmail.fm
Wed Dec 20 17:26:25 UTC 2006


Thanks Matthias

It was a data problem, the actual problem was that:
 postMethod.addParameter("puid", "4d8cad37-054d-4421-855e-60f111cf574a 
B2660da86-081f-eca6-12c7-739b37228326");

should have been

 postMethod.addParameter("puid", "4d8cad37-054d-4421-855e-60f111cf574a 
2660da86-081f-eca6-12c7-739b37228326");

this mistake occurred because when I converted a url-encoded space back 
to normal. BTW the Invalid ClientId (which was another mistake when I 
converted from real programId to a test programId) doesnt actually
cause a problem, I didnt look at these close enough Because I assumed 
there was something wrong with the user/password bit.

I have one other question: Is there any limit on how may puid should be 
passed in a single post ?

thanks Paul


Matthias Friedrich wrote:
> On Tuesday, 2006-12-19, Paul Taylor wrote:
>   
>> Ok, set up new user on the test server, I assume the realm is still 
>> musicbrainz.org not test.muiscbrainz.org, and tried out the Apache library
>> and it is now attemping to do digest authentication, but failing, I post 
>> the code and output just in case anyone has any ideas but I shall post 
>> this at the Apache site.
>>     
>
> The output looks good. You try to post, the server sends back a 401 with
> a challenge, you post again with the requested digest. The problem seems
> to be the data you send. One thing I noticed is that your client ID
> doesn't follow the spec, so please correct that and try again.
>
> Cheers,
> 	Matthias
>
> _______________________________________________
> MusicBrainz-devel mailing list
> MusicBrainz-devel at lists.musicbrainz.org
> http://lists.musicbrainz.org/mailman/listinfo/musicbrainz-devel
>
>
>   




More information about the MusicBrainz-devel mailing list