x-f (fxool) wrote in lj_clients,

"Digest Auth" and PHP

Hi, everyone!

I'm trying to make our LJ-powered server accessible to WAP users. In short, I have created a specific S2 style, that outputs WML, then it goes thru a PHP script to set the content-type etc. There is something else that's going on, but the reason I'm posting here is, I have to authenticate my PHP script every time it accesses any page on LJ server (../users/example/, ../users/example/friends/, ..). Only when it is authenticated, it can use that particular S2 style.

The thing is, I don't know how to authenticate. LJ uses "Digest Auth", which is basically challenge / response. For an example you might go to http://www.livejournal.com/community/lj_clients/?auth=digest
If LJ used "clear" authentication, it, of course, would be easily to implement, but how to deal with "Digest Auth" I don't know.
Can anybody help me?

And.. umm.. sorry, if this is not the right community, but I thought, you are dealing with authentication and have some ideas for me, too.


  • 302: lj_dev

    In the interests of consolidating all LiveJournal development-related discussion, we're going to be closing down this community. The same…

  • Plain text to LJ

    I have an old blog from xanga that's in html/plain text and I want to move it over here. Which client would be the best to do this? I also want to…

  • ljKlient 0.2.0 Preview Release 1

    Today marks another milestone in the development of ljKlient — as the first preview of the 0.2 series is released.  Please go to the project…

  • Post a new comment


    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened