Hello,
even I'm programming for a long time msl, I didn't register here before.
Now I have some questions about a socket script which should get some text from a translator website.
The problem is, mIRC can't read the text cause the website says 'javascript is disabled'..
Sadly I can't find some solution in the Internet and hope someone could help me.
alias trtest {
sockclose trtest
sockopen -e trtest papago.naver.com 443
}
on *:sockopen:trtest:{
if ($sockerr) { sockclose $sockname | halt }
sockwrite -n $sockname GET /?sk=en&tk=ko&hn=0&st= $+ $replace(%trword,$chr(32), $chr(95) $+ $chr(37) $+ $chr(50) $+ $chr(48)) HTTP/1.1
sockwrite -n $sockname Host: papago.naver.com
sockwrite -n $sockname Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
sockwrite -n $sockname Connection: Keep-Alive
sockwrite -n $sockname Content-Type: text/html
sockwrite -n $sockname User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9b4) Gecko/2008030714 Firefox/3.0b4 $+ $crlf $+ $crlf
}
mIRC is doing well to read the html but sadly after some time it says:
<noscript>If you're seeing this message, that means <strong>JavaScript has been disabled on your browser</strong>, please <strong>enable JS</strong> to make this app work.</noscript>
I can't find something in the internet to get rid of it, could someone help me please?
Thanks in advance!