webserver.parseArgs
| Syntax |
webserver.parseArgs (argString, adrTable)
|
| Params |
argString is a string of url-encoded name/value pairs from an HTTP request to be parsed into a Frontier table. adrTable is the address of a table where the data is to be stored.
|
| Action |
Parses the arguments into a table.
|
| Returns |
It has an undefined return value, but the table pointed to by adrTable will contain the parsed arguments.
|
| Examples |
local (x, s);new (tableType, @x);s = "foo=1&bar=2&baz=3&t=Hi%20Joe";webserver.parseArgs (s, @x);temp.x = x;edit (@temp.x) true
|
| Notes |
The argString is of the form: parm1=value&parm2=value, with a variable number of parameters. This is a standard HTTP format. The argString usually comes from POST args, search args (everything after a ?), or path args (everything after a $). If your server is on a Macintosh, note that neither the field names or values are converted to Macintosh text. Use string.latinToMac to convert to Macintosh text.
|
| See Also |
webserver.encodeArgs
|