HTTP/MIRC Scripting Language: Difference between revisions

Content added Content deleted
(Implementation of HTTP in MIRC Scripting Language)
 
m (spelling/formatting)
Line 1: Line 1:
{{collection|HTTP}}
{{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 loosing any information.
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>

<lang mirc>
<lang mirc>; /wget http://www.example.com/somefile.txt
; /wget http://www.example.com/somefile.txt
alias wget {
alias wget {
var %url = $1-
var %url = $1-
Line 142: Line 141:
sockread %line
sockread %line
}
}
}</lang>
}
</lang>