Originally found by entropy, after a quick debug with the team, it appears that this code does not work on windows 7 or below (windows xp tested by Kindone) but works on windows 10, so it seems to be related to some windows api function being used which don't work correctly on windows 7 and below, but difficult to say from our point of view. Using normal /sockopen socket to try to reach that server works on windows 7 and xp.
Type /dosynapi for the $urlget test
alias dosynapi noop $urlget(https://www.merriam-webster.com/thesaurus/test,gbi,&dosyn,processsynapi)
alias processsynapi echo -sg > id: $1 -- state: $urlget($1).state
Vs
Type /socktest for Classic socket test
alias socktest {
sockclose s
sockopen -e s www.merriam-webster.com 443
;https://www.merriam-webster.com/thesaurus/test
}
on *:sockopen:s:{
;these headers are what $urlget sends by default
sockwrite -n s GET /thesaurus/test HTTP/1.1
sockwrite -n s Accept: */*
sockwrite -n s Accept-Encoding: gzip, deflate
sockwrite -n s User-Agent: mIRC
sockwrite -n s Host: www.merriam-webster.com:443
sockwrite -n s Connection: Keep-Alive
sockwrite -n s Cache-Control: no-cache
sockwrite -n s
}
on *:sockread:s:{
var %a
sockread %a
if (!$sockbr) return
echo -sg > %a
}