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
  • 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