How to Receive Multiple Variables from 1 InputPort?

I want to send multiple values to the IMP with one HTTP request such as:

`
PositionX:

PositionY:

Name: Period:

Rank:

Serial#:

`

And then, on the IMP side, I want to be able to do something like:

positionx = get(positionx);
positiony = get(position);
name = get(name);
rank = get(rank);
serial = get(serial);

Questions:

Is this possible?
I really don’t want to have to setup multiple import ports (and therefore, multiple HTTP requests to multiple URLs).
One (horrible) way to do this is to send all of the data in a string… separated by delimiters… and then parse it with a regular expression (PLEASE don’t force me to do this!)

Thanks!

Joe

Nevermind, I figured it out. It would be great if the Admins would post this as an example in the Wiki please:

IMP CODE

`class Multi_input extends InputPort
{

function set(value)
{ 
    server.log(typeof value);
    
    foreach (val in value)
    {
        server.log(typeof val);
        server.log(val);

    }
}

}

imp.configure(“Multiple Inputs”, [ Multi_input() ], []);
`

HTML CODE - Paste it here: http://www.onlinehtmleditor.net/

`

Number:
Number:
`