Re: [SR-Users] How to test xhttp with wget or curl

2011-01-13 Thread mayamatakeshi
On Fri, Jan 14, 2011 at 12:24 AM, Mikko Lehto wrote: > Hi > > I think you are not succeeding because of missing Content-Length header. > > Try to add Content-Length to your HTTP request or > you can use tcp_accept_no_cl=no in sip-router.cfg. > Thanks. You are right. This works too: wget --heade

Re: [SR-Users] How to test xhttp with wget or curl

2011-01-13 Thread Mikko Lehto
Hi I think you are not succeeding because of missing Content-Length header. Try to add Content-Length to your HTTP request or you can use tcp_accept_no_cl=no in sip-router.cfg. -- Mikko ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users m

Re: [SR-Users] How to test xhttp with wget or curl

2011-01-13 Thread mayamatakeshi
On Fri, Jan 14, 2011 at 12:14 AM, mayamatakeshi wrote: > Hello, > can someone give me a sample of calling to xhttp from curl or wget? > > I have this in my kamailio.cfg: > > > listen=tcp:192.168.2.105:80 > > loadmodule "xhttp.so" > > event_route[xhttp:request] { > xhttp_reply("200", "OK", "tex

[SR-Users] How to test xhttp with wget or curl

2011-01-13 Thread mayamatakeshi
Hello, can someone give me a sample of calling to xhttp from curl or wget? I have this in my kamailio.cfg: listen=tcp:192.168.2.105:80 loadmodule "xhttp.so" event_route[xhttp:request] { xhttp_reply("200", "OK", "text/html", "OK - [$si:$sp]"); } But when I try wget or curl, kamail