As an example of how it would be used in practice, here's some agent code that takes a table of data from an imp, and encodes it for sending as if POSTed by an HTML form.