PDA

View Full Version : CRLF in a string variable



NewsArchive
04-01-2009, 01:25 AM
Hi,

I have to post a multiline text from a log file to a webserver in one
single post. I can read the log file line by line and put all strings
together. But then, all linefeeds disappear. How can I avoid that?

The following example does NOT work.

Set Variable %LOGTEXT% to "Zeile1\nZeile2"
Post to HTTP Server "http://testdomain.com/tinc?key=12345678"


Thanks for any suggestion.

Markus

NewsArchive
04-01-2009, 01:26 AM
Solved it:

#const $CRLF$ = "%0D%0A"
Set Variable %LOGTEXT% to "Zeile1$CRLF$Zeile2"

Markus Zander