Microsoft.XMLHTTP - 22/02/04 08:11 PM
before anyone starts saying "we don't help with MSN!, etc etc", it's for msn messenger, not chat.
anyway.. the problem is, i thought Microsoft.XMLHTTP was exactly the same as WinHttp.WinHttpRequest.5.1 to use, but when i change WinHttp.WinHttpRequest.5.1 to Microsoft.XMLHTTP, i get no response.
it works fine with WinHttp.WinHttpRequest.5.1 though.
does anyone know why this won't work with Microsoft.XMLHTTP?
anyway.. the problem is, i thought Microsoft.XMLHTTP was exactly the same as WinHttp.WinHttpRequest.5.1 to use, but when i change WinHttp.WinHttpRequest.5.1 to Microsoft.XMLHTTP, i get no response.
it works fine with WinHttp.WinHttpRequest.5.1 though.
does anyone know why this won't work with Microsoft.XMLHTTP?
Code:
alias msn.ticket { var %a msn.ticket if $com(%a) { .comclose %a } .comopen %a WinHttp.WinHttpRequest.5.1 if $comerr { return } if !$com(%a,Open,1,bstr,GET,bstr,$1) { return } if !$com(%a,SetRequestHeader,1,bstr,Authorization,bstr,$3-) { return } if !$com(%a,SetRequestHeader,1,bstr,Host,bstr,$2) { return } if !$com(%a,Send,1) { return } /* it only gets to here with Microsoft.XMLHTTP */ echo -s GOT TO if $com(%a,GetResponseHeader,1,bstr,authentication-info) { echo -s GOT TO } }