HTTP/MIRC Scripting Language: Difference between revisions

no edit summary
(Implementation of HTTP in MIRC Scripting Language)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1:
{{collection|HTTP}}
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 loosinglosing any information.
<br clear=right>
 
<syntaxhighlight lang="mirc">; /wget http://www.example.com/somefile.txt
<lang mirc>
; /wget http://www.example.com/somefile.txt
alias wget {
var %url = $1-
Line 142 ⟶ 141:
sockread %line
}
}</syntaxhighlight>
}
</lang>