Gustav Tresselt wrote:
Just ignore me if this is getting repetitive/annoying.. :)

I've searched the mail archive and found no clues as
how the "X-Kannel headers" should be encoded in the HTML.

Here's one of my typical attempts..:

"<HTML>
<HEAD>
<X-Kannel-SMSC>TelenorSMSC</X-Kannel-SMSC>
</HEAD>
</HTML>
<BODY>
This is the messij itself.
</BODY>"


In this case, Kannel realizes this is HTML, breaks it up, separates the body, but sends the message as:

"TelenorSMSC
This is the messij itself."

And routes it to another SMSC.
How should these headers be encoded in the HTML?

The kannel headers don't have anything to do with HTML. They are HTTP headers and should be output before the text of the message.


If my service script where done in PHP, I might start the output with;

header('Content type: text/plain');
header('X-Kannel-SMSC: Telenor');
-----
Perhaps some more Kannel headers here
-----
This is the text of the message



You output all headers before the text of the message. If you use Content type: text/plain as above, then you don't need to mess with any HTML - just print out the message directly after the headers.

Arne




Reply via email to