fixin (fixin) wrote in lj_dev,
fixin
fixin
lj_dev

Cannot make hand-shake with livejournal server.

In my case i can use only OLE-objects.
I want to make hand-shake, as its wrote: http://www.livejournal.com/doc/server/ljp.csp.guide.intro.html

So, i write:
URL = "http://www.livejournal.com:80";

Src =
"POST /interface/flat HTTP/1.1
|Host: www.livejournal.com
|Content-type: application/x-www-form-urlencoded
|Content-length: 34
|
|mode=login&user=fixin&password="+Password+"
|";
Header1 = "Content-Type";
Header2 = "text/xml; charset=Windows-1251";

Q = New COMObject("WinHttp.WinHttpRequest.5.1");
//Q.Option(9,80);

Q.Open("GET",URL,0);
Q.setRequestHeader(Header1, Header2);
Q.Send(Src);
Message(Q.responseText);
If Q.status=200 Тогда
Message("Data send...");
Else
Message("Data not send ... "+Q.status);
Endif;


Q.responseText returns a HTML-text of start page livejournal.com. What i do wrong?

I try to use other object: "Microsoft.XMLHTTP". Result equals.
Tags: client, client: authentication, client: flat, client: troubleshooting
Subscribe

  • cl-journal livejournal client

    Hey everyone, I'd like to present a livejournal client that I wrote to fulfill my needs but maybe there are other people that can find it…

  • SessionGenerate and ljloggedin

    Are there any information after release 86 and changes in cookies scheme to use sessiongenerate? It returns ljsession key, but this key is not enough…

  • Retrieving comments

    Hi, Is there a way to retrieve a list of comments made by user XXX (which may or may be not the currently logged in user) in the journals of users…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments