On 12/17/06, James Moore <banshee / banshee.com> wrote:

>  - the first thing on the line is the command "FOOBAR"
>  - it takes two required arguments, and one optional
>  - encode the required arguments using (base64/http/whatever)
>  - the response is one line starting with an integer result code
>  - when you get a response matching code X, execute a given block
>  - etc

If the data is regular enough, RedNails might do the trick
http://rednails.rubyforge.org/