mIRC Home    About    Download    Register    News    Help

Print Thread
winhttprequest sync request + $camcall #134379 31/10/05 03:58 PM
Joined: Oct 2005
Posts: 17
B
baa Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2005
Posts: 17
"open" xml/winhttprequest in sync mode
"send" will block mirc until the request is finished. so i use $comcall for "send", but the alias is called immediately without waiting "send" to be done.
(i know there's a async mode for winhttprequest)

Re: winhttprequest sync request + $camcall #134380 13/12/05 02:29 PM
Joined: Feb 2004
Posts: 2,019
FiberOPtics Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
I can confirm this when you are using the server variant like MSXML2.ServerXMLHTTP, but not the client variant like MSXML2.XMLHTTP.

HOWEVER, it is close to useless for two reasons:

1) It working is random, meaning sometimes it works, sometimes it just crashes my mIRC, which is very unfortunate, because this technique is great for retrieving html quickly without sockets.

2) Even if it would work, we cannot access anything but the first +/- 930 chars with $mid, since the source of a html page usually exceeds the string too long method, making this technique again near to useless.

If only those things got fixed, we could do a lot of innovating and cool stuff with it, but right now it feels handicapped and near to useless frown

Btw, I havent tried with the WinHttp.winhttprequest.5.1 progid, but I'd rather use the xmlhttp variant, because the former only works on some XP systems, so not really compatible enough.


Gone.