Yes I am reading from the Socket but nothing comes back whatsoever.
I will have a look at the HttpClient.
Thanks for your suggestions.
-----Original Message-----
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 13, 2003 11:48 AM
To: [EMAIL PROTECTED]
Subject: Re: sendsms response
Are you reading the response from the socket ? If you don't then you
never get anything then.
BTW, because it is a HTTP request, you need to read the body of the
response(the bit in your browser that displays stuff)
to get the text.
I'd suggest a easier way of doing this :
http://jakarta.apache.org/commons/httpclient/
It is nice easy way to post and get data from HTTP servers.
STAVRIANOU ANNA wrote:
>Hello.
>
>I am new in using Kannel and at the moment I have a small problem with sendsms.
>I have a Socket in Java that deals with the connection but when I am reading the inputstream I get nothing back whether the sendsms has succeeded or not. The same holds when i am doing a "GET /cgi-bin/sendsms?....." from telnet.
>The weird thing is that when i am connecting to sendsms from the web browser i get back a "Sent.".
>I would like to be getting a response back from the inputstream. Any ideas what is happening or how I can solve this problem?
>
>Thanks a lot.
>
>Regards,
>Anna
>
>
>
>
