If you where to send the command as a string from a piece of code, "/n/n"
would be required. But when using Telnet in the terminal or some socket
app, an actual "new line" (i.e.: pressing enter) will be translated to
"/n/n" on the server. It does ring some memories now...
- Louis
Le mardi 7 octobre 2014 16:52:45 UTC-4, Andy Ericksen a écrit :
>
> Updating in case anyone else runs into this 'issue', I was able to
> successfully test version 1.1.3-Dev as follows:
>
> $telnet apeserver 6969
>
> GET /0/?[{"cmd":"getHostname"}] HTTP/1.1
> Host: apeserver:6969
>
>
>
> Note that I did not include the \n\n or \r\n and that I pasted two lines
> instead of including everything on one line.
>
> I hope this helps someone.
>
> Andy
>
> On Monday, January 27, 2014 5:19:26 PM UTC-5, Louis Charette wrote:
>>
>> Hi,
>>
>> I believe you could make it work using the same technique I used to
>> communicate with APE using Socket in iOS. To make it short, you use the
>> same method as the transport protocol #1 in the Javascript client (don't
>> remember the transport name), something like this :
>>
>> GET /1/?[{"cmd":"CONNECT","chl":0,"params":{"name":"iOS514"}}]
>> HTTP/1.1\n\nHost: 0\n\n
>>
>>
>> See this link for the socket based iOS client for reverence:
>> https://github.com/lcharette/APE_iOS_Client
>>
>>
>> If you want to stay connected to APE to exchange messages with him in
>> real time, you'll need to catch the "sessid" somehow and a patched version
>> of the server available on my Github (
>> https://github.com/lcharette/APE_Server/tree/fe98daf9db61410cb4358f248b74975cbd6072cb).
>>
>> To send and received one command at a time, it shouldn't be a problem.
>>
>>
>> - Louis
>>
>>
>> On Monday, January 27, 2014 2:34:45 PM UTC-5, Andy Ericksen wrote:
>>>
>>> I normally wouldn't bump my own post, but nobody every responded. I
>>> hope someone can answer this form me because I would like to upgrade but
>>> can't due to this limitation (bug?).
>>>
>>
--
--
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.