I can't think of anything else:

POST /? HTTP/1.1
Host: ape.localhost
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 4

blah

echo -e 'POST /? HTTP/1.1\nHost: ape.localhost\nUser-Agent:
HTTPTool/1.0\nContent-Type:
application/x-www-form-urlencoded\nContent-Length: 4\n\nblah\n' | nc
ape.localhost 6969

and still doesn't work. Could someone provide a working example?

On Fri, Jun 4, 2010 at 2:27 AM, Dariusz Karcz <[email protected]> wrote:
> Doesn't work because you forgot about something in request:
> POST /? HTTP/1.1\nHost: ....
>
> Dariusz K.
>
>
> Dnia 04-06-2010 o 02:06:18 SZERB, Tamas <[email protected]> napisał(a):
>
>> echo -e 'POST /?Host: ape.localhost\nContent-Length: 4\n\nblah\n' | nc
>> ape.localhost 6969
>>
>> still doesn't work. :/ what's the issue?
>>
>> 2010/6/4 Dariusz Karcz <[email protected]>:
>>>
>>> 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/
>>>
>>
>>
>
> --
> 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/
>



-- 
VWOL
Tamas SZERB <[email protected]>

-- 
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