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