After recompiling the CVS source with the flags that you comment me. I used netcat to catch the following post request (the request tries to send the same message to 2 users)
POST /cgi-bin/sendsms HTTP/1.1Content-Type: text/xmlConnection: Keep-AliveUser-Agent: Jakarta Commons-HttpClient/2.0.2Host
describes when I used the
HttpUrlConnection object.
Spyros
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Wilfried Goesgens
Sent: Friday, September 23, 2005 11:24 AM
To: users@kannel.org
Subject: Re: Sending post request in java
On Thu, Sep 22, 2005 at 01
On Thu, Sep 22, 2005 at 01:51:30PM +0300, Spyros Sakellariou wrote:
>breaks the request into two packets and that probably confuses Kannel.
as of both, kannel and your java programm use the kernel tcp/ip stack this
is most likely not the case.
It is the content wich you should have a look at. C
replyString.append(tmp);
ppgReply.close();
sendXMLStream.close(); } catch
(Exception e)
{
e.printStackTrace();
}
return
replyString.toString(); }
}=============
Hope
it helps,
Spyros
-Origi
I used the HttpCLient, and i couldn't resolve the problem
here is a piece of code:
case Request.POST: methodP = new PostMethod(url); methodP.setRequestHeader("Content-type", "text/xml"); methodP.setRequestBody(request.getRequest());
client.executeMethod(methodP); respons
I had
the same problems trying to send Push Mesages from Java using the
HttpUrlConnection.
Checking with Ethereal I found out that the
HttpUrlConnection object breaks the request into two packets and that probably
confuses Kannel.
I
tried using sockets (more work of course) and everything
compile with
export CFLAGS="-ggdb -rdynamic -O0"
to get the full stack trace, so we can give you more information.
Wilfried Goesgens
The keep alive option is disable, but the problem still happens, but now the log changed to:
2005-09-21 08:57:42 [16586] [3] DEBUG: HTTP: Resetting HTTPClient for `192.168.1.81'.2005-09-21 08:57:42 [16586] [3] PANIC: gwlib/octstr.c:2343: seems_valid_real: Assertion `ostr->len >= 0' failed. (Calle
Try to
disable keep alive connections (if those are being used).
Rene
Kluwen
Chimit
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]On Behalf Of Gelvis
SequeraSent: dinsdag 20 september 2005 21:56To:
users@kannel.orgSubject: Sending post request in
j