?

Log in

No account? Create an account
March 17th, 2009 - LiveJournal Development — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Development

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

March 17th, 2009

Cannot make hand-shake with livejournal server. [Mar. 17th, 2009|09:02 am]
LiveJournal Development

lj_dev

[fixin]
[Tags|, , , ]

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.
link3 comments|post comment

navigation
[ viewing | March 17th, 2009 ]
[ go | Previous Day|Next Day ]