Log in

No account? Create an account
LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

URL formatting [Aug. 27th, 2006|01:09 am]
LiveJournal Client Discussions


Is there a way to format a URL for a friends page so that protected(friends-only) entries can be viewed? I suspect there are some sort of GET variables to set so that the server can log you in before you view the page, but I can't find any documentation about it. I read through the backlogs of lj_client for about an hour, too, and couldn't find anything ;) For the moment, my client uses a Gecko WebControl widget to show the user's own journal as well as their friends page. Is there a way to do the same with an rss feed? (that is, include protected entries in it). Thanks :)

From: ex_swined
2006-08-27 11:53 am (UTC)
try downloading http://username.livejournal.com/data/rss?auth=digest (it requires digest http authorization in order to download the entries)
or you can also try using cookies (generated during web login), but i still couldn`t get it to work :(
(Reply) (Thread)
[User Picture]From: otakulk
2006-08-27 11:09 pm (UTC)


Using the info swined, I was able to do this via command line with curl:

curl --digest -u YourUsername:YourPassword http://username.livejournal.com/data/rss?auth=digest

It also works for atom feeds if you use data/atom.
(Reply) (Parent) (Thread)
[User Picture]From: boggyb
2006-08-27 02:26 pm (UTC)
There's a getcookie or getsession command in the flat protocol that might do what you want (give you a session cookie to use on the site), however I've not managed to get it to work myself (though I think that's more due to WinHTTP being stubborn).
(Reply) (Thread)
From: ex_swined
2006-08-30 03:37 am (UTC)
there is sessiongenerate, but it doesn't work - it seems to me, that something else should be sent there, but i dont know what :(
(Reply) (Parent) (Thread)