Re: HTTP format

"Arne K. Haaje" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization Eurobate ASA
Message-ID <[email protected]>
[email protected] wrote:
> List,
> 
> I'm trying to do the following.
> 
> When a user sends an keyword in this fetches an response and this is
> response is being send back to the user. The problem i'm facing is that
> i'm trying to format the message with this i mean i want to add some
> line feed (%0A) to the message being send back to the user. This works
> beautiful if i submit a message. If it comes as an http response the %0A
> is not being parsed as an line feed is being seen as text. Is there
> another way that i can accomplish what i want to do?

In the response, just use the linefeed symbol \n

Like when using PHP;

echo "Text on line 1\nText on line 2";

This would produce a message with two lines :)

-- 
Yours sincerely,
Eurobate ASA

Arne K. Haaje
Senior Network Engineer
--------------------------------------------------------------------
    Eurobate ASA - Postboks 4589 Nydalen - 0404 Oslo - Norway
Phone: +47 23 22 73 73 - Fax: +47 23 22 73 74 - Mob: +47 92 88 44 66
                    http://www.eurobate.no/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.