Log in

No account? Create an account
XML-RPC Login + PHP Question - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

XML-RPC Login + PHP Question [May. 29th, 2004|02:35 am]
LiveJournal Client Discussions


Hey guys,

I'm trying to get a PHP script that logins and posts an entry into my journal. I'm trying to get the Challenge/Response auth working. After getting the challenge, I'm generating the response with

md5($challenge . md5($password))

However, this seems to not work. Does anyone know if this is the proper way to generate the response for the challenge using PHP?

[User Picture]From: sapphirecat
2004-05-29 08:11 am (UTC)
Yes, that appears to be right. PHP is doing the letters in the MD5 as lowercase, so that's not a problem either.

Are you filling in all the required fields? You need to send the user name, auth_method='challenge', auth_challenge=$challenge, and of course the auth_response.
(Reply) (Thread)
[User Picture]From: chrisx
2004-05-29 11:06 am (UTC)
oops... I had auth_method set to c0 not challenge..
(Reply) (Parent) (Thread)