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