**>To: users@kannel.org
**>From: Matthew Hixson <[EMAIL PROTECTED]>
**>Subject: setting the Content-Type HTTP POST header
**>Date: Fri, 11 Feb 2005 15:40:56 -0800
**>
**>When POSTing to Kannel should I always use a content type of 
**>"text/plain" for SMS text messages and "application/octet-stream" for 
**>all binary SMS messages?  The binary messages we will be sending will 
**>contain ringtones.

Yes. Based on your content type declaration in the HTTP headers,
Kannel will set it's coding to the proper value.  Just remember there's
one exception to this rule.  If you are sending UCS-2 encoded text
then you will need to set the content-type to:
  text/plain; charset=UTF-16BE

Also, ensure you have a correct content-length HTTP header declaration
for any 8-bit content you send with content-type of "application/octet-stream".
Making it guess will waste alot of time growing the input buffer.

See ya...

d.c.

Reply via email to