On 17/05/12 03:22, William MARTIN wrote:
> Can you send me your handler ?
Uh... sure?
===
from mongrel2 import handler
# set these to whatever you set in your mongrel.conf
conn = handler.Connection(SENDER_ID, IN_SOCKET, OUT_SOCKET)
while True:
req = conn.recv()
print req.body
conn.reply_http(req, req.body)
===
> I Will test with it inside my app‚ and make a wireshark trace.
You could also try Firebug's XHR tab.
> William
> Le 17 mai 2012 07:38, "Tordek" <[email protected]
> <mailto:[email protected]>> a écrit :
>
> On 15/05/12 02:59, William MARTIN wrote:
> > Hi,
> >
> > Yes, the version 1.7 without charset works.
> > In the version 1.7.2 with charset, my handler receive the
> request but
> > with a empty POST array.
>
> I'm doing a trivial handler test in Python with
>
> ... req = conn.recv()
> ... print req.body
> ... conn.reply_http(req, req.body)
>
> but I can't verify your bug:
>
> ~
> $ curl http://192.168.0.2:6767/verify/ -H "Content-Type:
> application/x-www-form-urlencoded; charset=UTF-8" -d potato
> potato
>
> Would you mind making a simple example showing the bug?
>
> >
> > William
>
>
> --
> Guillermo O. «Tordek» Freschi. Programador, Escritor, Genio Maligno.
> http://tordek.com.ar :: http://twitter.com/tordek
>
--
Guillermo O. «Tordek» Freschi. Programador, Escritor, Genio Maligno.
http://tordek.com.ar :: http://twitter.com/tordek