Hi Mike,

Kannel is very explicit about its problem. The HTML header "Content-type" you 
are submitting with your javascript (or more likely don't send at all) is 
invalid. The header of course is not part of the URL which seems to be OK.

You can see the headers you are sending to kannel either by a packet analyzer 
like tcpdump, or by starting bearerbox and smsbox at the shell at maximum 
verbosity:

bearerbox <conffile>&
smsbox <conffile> &

BR,
Nikos
  ----- Original Message ----- 
  From: Mike Nwaogu 
  To: Alejandro Guerrieri 
  Cc: [email protected] 
  Sent: Friday, January 02, 2009 7:01 PM
  Subject: Re: Invalid content type error


  Hello All,
  I'm not sure you recall this request from last year, but i'm having the same 
issue, and I have checked to be sure, I'm encoding properly using PHP curl, 
have searched thru the list.

  Please help with a pointer, really lost now.

  TIA
  Mike Nwaogu.

  Alejandro Guerrieri alejandro.guerrieri at gmail.com 
  Mon Mar 5 22:14:56 CET 2007 
    a.. Previous message: Invalid content type error 
    b.. Next message: Problematic Kannel behaviour with large message stores 
    c.. Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 

------------------------------------------------------------------------------

This looks more as a question for the "users" mailing list. FromKannel's 
standpoint this is a "kannel user" question, not a "kanneldeveloper" one.Hint: 
Check if you are urlencoding your text fields.Regards,Alejandro.On 3/5/07, 
sudhir <ssharma at signdomains.com> wrote:>>> Hi,>            i  am using 
Kannel 1.4.1 for my sms application.The configuration> settings have been 
made.When i use that url directly into the browser it> runs fine, but i have to 
use it into my sms appplication which has been made> in ASP.>> To send the sms 
i have made a html form, and using javascript i am> submitting all the values 
to the kannel.after submitting it gives 'invalid> content type' error.> but 
when i
 print this URl on to the sreen and copy an paste it into the> browser ,then it 
runs fine.>> can anyone of you please tel me that where i am making the mistake 
or> anyother solution.I am using 'get' method in my form.> Thanks in 
advanvce.>>> Thanks & Regards,> Sudhir Sharma-- Alejandro 
GuerrieriMagicomhttp://www.magicom-bcn.net/LinkedIn: 
http://www.linkedin.com/in/aguerrieri

Reply via email to