||[Jul. 16th, 2008|11:24 pm]
I'm having trouble with my Fotobilder client. I'd like to be able to export the user's pictures as a backup. I knew that the Perl client did this, so I looked at how it works. It's rather different to the rest of the Fotobilder stuff: it seems to get the export data by POSTing to http://pics.livejournal.com/manage/export, and it seems to authenticate by a challenge/response cookie. I hope I've understood this correctly.
My first problem is that when my client requests an export I get a 302 sending me to the LJ login page - presumably because the server doesn't like my cookie. To find out if it was just me getting it wrong, I tried running the Perl client. My second problem is that when I try ./fotoup.pl --backup it says
Fetching export.xml from server...
Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/lib/perl5/vendor_perl/5.10/XML/SAX/ParserFactory.pm line
43. Now I'm stumped.
- Is the Perl client broken?
- Does the Perl client work under Cygwin?
- Does the server still accept this style of authentication?
- Is there any way to get the export data through the normal protocol?