.kiss and kill me sweetly. (sophiespo) wrote in lj_clients,
.kiss and kill me sweetly.

Hi everyone, I'm new here.

I used to do IT at uni, a long long time ago, I used to do a lot of programming, and I loved it. I'm doing a whole different course now, so that got put to the wayside.

I've always wanted to write my own LJ client, mostly because I'm never satisfied with any program I use (the common programmers curse - seeing the ways in which it can be better!). The only problem is, I never got past the trying to log in stage. It has just -never- worked for me. No matter what I try.

I've gone back to the basics, and am using Visual Basic .NET (I told you - basics!). I've read the documentation over and over again, and apart from noticing some bad grammar here and there, it's shining no new light on what I'm trying to do.

Can somebody please help me? This is what I've tried to do, and while relatively simple sounding, it just Will. Not. Do. It.

I have:

- created the TCP socket. It seems to connect fine to www.livejournal.com on port 80.
- sent the HTTP request stuff, as per http://www.livejournal.com/doc/server/ljp.csp.guide.intro.html says - so, the POST, Host, Content-type and Content-length.
- at the end of each line is either a vbCrLf code, or Chr(13) + Chr(10) (I've tried with both, but logically shouldn't be any different to each other?)
- after the content length, which I've set as the correct value, I put a blank line, then the "mode=login etc" line. Then another Cr Lf.

This responds with nothing. I remember, ages ago, I did it another way and it responded with something. It was the wrong value, and responded with an error, but I can't replicate it now.

I have my program listening on the incoming stream - I've tested it with a sample server to make sure that it will tell me if it receives any information.

I'm sorry to be such a complete newbie to this, but trust me, I wouldn't be asking if I hadn't already exhausted every possibility that I can think of. My head is this close: |-| to smashing against a wall, desk or whatever else is in reach. I've read back in this community before to try and find some answers, but can't.

Thanks in advance!

  • 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