[JIRA] Updated: (SVC-5322) Methods to handle posted form data

Dedric Mauriac (JIRA) no-reply at lindenlab.cascadeo.com
Wed Jan 27 21:10:32 PST 2010

     [ http://jira.secondlife.com/browse/SVC-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dedric Mauriac updated SVC-5322:

    Summary: Methods to handle posted form data  (was: Commands to handle posted form data)

> Methods to handle posted form data
> ----------------------------------
>                 Key: SVC-5322
>                 URL: http://jira.secondlife.com/browse/SVC-5322
>             Project: 2. Second Life Service - SVC
>          Issue Type: New Feature
>          Components: LSL HTTP, Scripts
>    Affects Versions: 1.34 Server
>            Reporter: Dedric Mauriac
>            Priority: Major
> We need methods to handle the subtle differences in form data that llEscapeURL and llUnescapeURL do not handle. Specifically instances with encoding/decoding the space character ("+" versus "%20"). This is primarily related to HTTP functionality of scripted objects for posted form data.
> string llUnescapeFormData(string data) - same as llUnescapeURL, except that "+" signs also decode as spaces.
> string llEscapeFormData(string data) - same as llEscapeURL, except that spaces become "+" signs
> string value = llGetFormDataField(string data, string name) - parses the data to find a field and returns the value assigned to the field. If field is not found, returns an empty string. Take care to note that field names may be escaped within the form data.
> string data = llSetFormDataField(string data, string name, string value) - replaces existing field value, or appends it if it does not already exist. Returns the data with the new value. If the value is EOF, then the field is removed from the form data.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.secondlife.com/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the Jira-notify mailing list