Have a look at my SpreadShirt extension (http://ez.no/community/contribs/template_plugins/spreadshirt ), it does something similar.If you are accessing a local script, things are even easier.
The general idea would be to write a custom extension providing either a template operator or a fetch function (or both), allowing you to embed the desired functionality inside a standard eZ Publish template.
Accessible website starting from eZ publish 3.0 (currently: 4.1.0): http://pluspunkt.at
You must be logged in to post messages in this topic!