The query parameters have to be URL-encoded (the space on your "hello world" breaks the request string).
I strongly recommend you to use an HTTP lib instead of plain sockets (that without stating the lines of code you have quoted looks like an example of how not to write code in C (should have been using safe string routines (e.g. snprintf), should have the return code checked). You don't have to convert the text to GSM charset; Kannel will do it if necessarily. cheers _____ From: denis punnoose [mailto:[EMAIL PROTECTED] Sent: 06 March 2008 10:40 To: kannel Subject: how 2 send SMS using C prog and GET url Hi ALL, Im trying to send sms from my CELL phone connected to my PC. I wrote a C program to send a http GET request to port 13013 (to smsbox). I use the fallowing line in the prog- sprintf(buffer, "GET /cgi-bin/sendsms?username=tester&password=foobar&to=012345678901&text=%s HTTP/1.1\n\n", "hello world"); send(sockfd, buffer, strlen(buffer), 0); But when i receive the SMS in the other cell, i get some strange characters in the SMS. I know this has something to do with the 7-bit charset of GSM cells. PLZ HELLP me to convert ASCII char to GSM 7-bit charset in C. Does anyone know how to use iconv in c programs? THANK U _____ Why delete messages? Unlimited storage is just <http://in.rd.yahoo.com/tagline_mail_1/*http:/help.yahoo.com/l/in/yahoo/mail /yahoomail/tools/tools-08.html/> a click away.
