On Fri, Feb 26, 2010 at 12:32, Chris Kaye <chris.k...@t-mobile.co.uk> wrote: > I have been trying to use the REST interface through PHP cURL and the > content=>value uses new lines (\n) to delimit fields so how do you embed new > lines into the Text: field? > > Answer: Apparently, subsequent lines need a leading whitespace. Never encountered that, it may be a peculiarity of your setup.
I use the RT::Client::REST and never have to do this, and it is not done within the library itself either. Furthermore, the REST interface simply takes in the same style forms as the CLI, which are exposed online via the "Offline Edit" tool, and this requires no leading whitespace for multi-line data. Instead, the form acts more like a HEREDOC. _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: sa...@bestpractical.com 2010 RT Training Sessions! San Francisco, CA, USA - Feb 22 & 23 Dublin, Ireland - Mar 15 & 16 Boston, MA, USA - April 5 & 6 Washington DC, USA - Oct 25 & 26 Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com