HTTP/MIRC Scripting Language: Difference between revisions

no edit summary
m (spelling/formatting)
No edit summary
 
Line 2:
A simple implementation of the [[HTTP|HTTP protocol]] in [[MIRC Scripting Language]]. The 'on SOCKREAD' event is structured that way so that it can be re-entered when more data arrives, without losing any information.
<br clear=right>
<langsyntaxhighlight lang="mirc">; /wget http://www.example.com/somefile.txt
alias wget {
var %url = $1-
Line 141:
sockread %line
}
}</langsyntaxhighlight>