Hi,

Server is checking Content-Length header in POST request. You have to add this header to your request.

--
Dariusz Karcz
[email protected]



Dnia 04-06-2010 o 01:50:00 SZERB, Tamas <[email protected]> napisaƂ(a):

Hello,

Based on the
http://www.ape-project.org/wiki/index.php/Protocol_Basics
documentation,

echo -e 'GET /?[{"cmd":"inlinepush","params":{"password":"XXX","raw":"postmsg","channel":"testchannel","data":{"message":""}}}]\n'
| nc ape.localhost 6969

works fine, but

echo -e 'POST /? HTTP/1.1\nHost:
ape.localhost\n\n[{"cmd":"inlinepush","params":{"password":"XXX","raw":"postmsg","channel":"testchannel","data":{"message":""}}}]\n'
| nc ape.localhost 6969

doesn't. Any idea how to fix it, where could be the issue?

Cheers,

--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply via email to