Re: SendSMS via POST
"Alex Judd" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <004601c2ff46$fbf22820$0201640a@alexcompaq1> |
Here's a working POST from a Java Servlet we use to do this kind of stuff.
String httpstring = "POST /cgi-bin/sendsms HTTP/1.0\n" +
"User-Agent:Skywirev1.0\n" +
"Connection:Keep-Alive\n" +
"Content-Type:text/plain\n" +
"X-Kannel-Username:" + username + "\n" +
"X-Kannel-Password:" + password + "\n" +
"X-Kannel-To:" + to + "\n" +
"X-Kannel-From:" + from + "\n" +
"Content-length: " + content.length() + "\n" +
"\n" +
content + "\n\n";
I'd suggest moving this chat to the user forum rather than the dev. forum?
Regards
Alex
CTO
Skywire
http://www.skywire.co.uk/