July 23rd, 2001

Me in the sun

REALbasic Code

I'm stumped. I can't see what I'm doing wrong. My code (in REALbasic) says this:

Dim Part1,Part2,Part3,Part4,Part5,Part6,Part6Length,WriteThis as String
Dim Part6LengthN as Integer

StatusInfo.Text="Connected. Logging In..."

Part1="POST /cgi-bin/log.cgi HTTP/1.0"+CHR(10)+CHR(13)
Part2="Host: www.livejournal.com"+CHR(10)+CHR(13)
Part3="Content-type: application/x-www-form-urlencoded"+CHR(10)+CHR(13)
Part4="Content-length: "+Part6Length+CHR(10)+CHR(13)
// Part6 already posted


Which should tell LiveJournal:

POST /cgi-bin/log.cgi HTTP/1.0
Host: www.livejournal.com
Content-type: application/x-www-form-url-encoded
Content-length: nn


But the LiveJournal server just throws "FAIL: no mode set" back at me. What am I doing wrong?
  • Current Mood
    ecstatic ecstatic
  • choric


What's the best way to download a journal in entirety? getevents is only going to get 50 entries. Should I use syncitems with an arbitrary Really Old Date, and then run getevents on the returns? I'd be interested to see how any of the journal syncers around handle this - has anyone got some code around for getting an entire journal? :-)
Hairy Bastard

The foreach_entry command

This command is currently saying it's not implimented yet. Is there an ETA for it? It appears to be an extremely useful tool for people wanting to close their journals from the public. (And convert everything to Friends only or Private.)

  • Current Music
    Laguna - Mystic cymbal (D I G I T A L L Y - I M P O R T E D - European Trance, Techno, Hi-NRG... we can't define it!)