Nopes... content text goes in post body.

-----Original Message-----
From: Nikos Balkanas [mailto:[email protected]] 
Sent: Friday, 10 September, 2010 21:27
To: Rene Kluwen; 'Pratik Shrestha'; [email protected]
Subject: Re: post-method support

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

Nikos
----- Original Message ----- 
From: "Rene Kluwen" <[email protected]>
To: "'Nikos Balkanas'" <[email protected]>; "'Pratik Shrestha'" 
<[email protected]>; <[email protected]>
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:[email protected]]
> Sent: Friday, 10 September, 2010 19:11
> To: Rene Kluwen; 'Pratik Shrestha'; [email protected]
> 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' ; [email protected]
> 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: [email protected] [mailto:[email protected]] On Behalf
> Of Pratik Shrestha
> Sent: Friday, 10 September, 2010 09:42
> To: [email protected]
> 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