Cannot make hand-shake with livejournal server.

Mar 17, 2009 09:02

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.

client, client: troubleshooting, client: authentication, client: flat

Previous post Next post
Up