Nopes... content text goes in post body.

-----Original Message-----
From: Nikos Balkanas [mailto:nbalka...@gmail.com] 
Sent: Friday, 10 September, 2010 21:27
To: Rene Kluwen; 'Pratik Shrestha'; users@kannel.org
Subject: Re: post-method support

Bummer! You mean no X-header for the body?

Nikos
----- Original Message ----- 
From: "Rene Kluwen" <rene.klu...@chimit.nl>
To: "'Nikos Balkanas'" <nbalka...@gmail.com>; "'Pratik Shrestha'" 
<pratik...@gmail.com>; <users@kannel.org>
Sent: Friday, September 10, 2010 8:11 PM
Subject: RE: post-method support


> It is post. Just the post body is plain text instead of urlencoded.
> The message goes in the post body.
>
> == Rene
>
> -----Original Message-----
> From: Nikos Balkanas [mailto:nbalka...@gmail.com]
> Sent: Friday, 10 September, 2010 19:11
> To: Rene Kluwen; 'Pratik Shrestha'; users@kannel.org
> Subject: Re: post-method support
>
> This is cheating;-) It is not really POST. In Post you are supposed to 
> pass
> variables in the body. Here there is no body. This could work equally well
> in a GET request (but it is not implemented to).
>
> BR,
> Nikos
> ----- Original Message ----- 
> From: Rene Kluwen
> To: 'Pratik Shrestha' ; users@kannel.org
> Sent: Friday, September 10, 2010 5:54 PM
> Subject: RE: post-method support
>
>
> Yes, it can do a Post method. See table 6-10 in the userguide:
>
> Example:
>
> SMSPush equivalent X-Kannel Header
> username    X-Kannel-Username
> password    X-Kannel-Password
> from        X-Kannel-From
>
> From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf
> Of Pratik Shrestha
> Sent: Friday, 10 September, 2010 09:42
> To: users@kannel.org
> Subject: post-method support
>
> Dear All,
>
> I have a java application that post message to kannel gateway. When I use
> 'Get' method to send the message to kannel http (i.e.
>
http://localhost:13131/cgi-bin/sendsms?username=**&password=**&to=**&text=**
> ),
> it works well. But if I use 'Post' method to do the same job, I get HTTP
> error 400. What is the reason behind this? Is that kannel does not support
> post method?
>
> Regards,
> Pratik
>
>
> 




Reply via email to