Re: [lwip-users] httpd: how to implement AJAX

2017-11-22 Thread Giuseppe Modugno
Il 13/11/2017 21:25, goldsi...@gmx.de ha scritto: Giuseppe Modugno wrote: The prototype for SSI callbacks is: [..] I don't see any reference to query string parameters. So how to select the right action? Sorry for the confusion. This is a mix of resource optimization, missing documentation

Re: [lwip-users] httpd: how to implement AJAX

2017-11-14 Thread Giuseppe Modugno
Il 14/11/2017 13:54, Noam Weissman ha scritto: Hi, HTTPD is widely used and if you look around you can find examples from ST micro TI and other vendors. Do you mean HTTPD *without* a secure layer? Yes, I know there are many examples of it, but IMHO because it is simpler than a full HTTPS

Re: [lwip-users] httpd: how to implement AJAX

2017-11-14 Thread Noam Weissman
+noam=silrd@nongnu.org] On Behalf Of Giuseppe Modugno Sent: Tuesday, November 14, 2017 2:47 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] httpd: how to implement AJAX Il 13/11/2017 21:25, goldsi...@gmx.de ha scritto: > Giuseppe Modugno wrote: >> The prototype for SSI

Re: [lwip-users] httpd: how to implement AJAX

2017-11-14 Thread Noam Weissman
] On Behalf Of Giuseppe Modugno Sent: Tuesday, November 14, 2017 2:42 PM To: lwip-users@nongnu.org Subject: Re: [lwip-users] httpd: how to implement AJAX Il 13/11/2017 18:04, Noam Weissman ha scritto: Yes SSID is a session ID that had been added to my own server code. So are you using a completely

Re: [lwip-users] httpd: how to implement AJAX

2017-11-14 Thread goldsimon
Giuseppe Modugno wrote: > It's a pity lwip doesn't feature those >secure network layers. Actually, it's not that far away. Have a look at the for master. It's not in the releases, yet. Simon ___ lwip-users mailing list lwip-users@nongnu.org

Re: [lwip-users] httpd: how to implement AJAX

2017-11-14 Thread Giuseppe Modugno
Il 13/11/2017 21:25, goldsi...@gmx.de ha scritto: Giuseppe Modugno wrote: The prototype for SSI callbacks is: [..] I don't see any reference to query string parameters. So how to select the right action? Sorry for the confusion. This is a mix of resource optimization, missing documentation

Re: [lwip-users] httpd: how to implement AJAX

2017-11-14 Thread Giuseppe Modugno
ped, Noam. *From:*lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] *On Behalf Of *Giuseppe Modugno *Sent:* Monday, November 13, 2017 6:09 PM *To:* lwip-users@nongnu.org *Subject:* Re: [lwip-users] httpd: how to implement AJAX Il 13/11/2017 14:34, Noam Weissman ha scritto: Hi,

Re: [lwip-users] httpd: how to implement AJAX

2017-11-13 Thread goldsi...@gmx.de
Giuseppe Modugno wrote: The prototype for SSI callbacks is: [..] I don't see any reference to query string parameters. So how to select the right action? Sorry for the confusion. This is a mix of resource optimization, missing documentation and maybe missing framework functions. The idea

Re: [lwip-users] httpd: how to implement AJAX

2017-11-13 Thread Noam Weissman
ething_2") == 0) { } else { // print a debug error : action unknown } Hope that helped, Noam. From: lwip-users [mailto:lwip-users-bounces+noam=silrd@nongnu.org] On Behalf Of Giuseppe Modugno Sent: Monday, November 13, 2017 6:09 PM To: lwip-users@nongnu.org Subject: Re: [lwip-us

Re: [lwip-users] httpd: how to implement AJAX

2017-11-13 Thread goldsimon
Noam Weissman wrote: >Create an empty file named ajax.shtml or ajax.html and add it to your >file list. > >Inside the file you only write one tag without anything else. For >example That's a nice idea. I also have task #14269 open to make ssi processing independent of the file's extension (a

Re: [lwip-users] httpd: how to implement AJAX

2017-11-13 Thread Giuseppe Modugno
Il 13/11/2017 14:34, Noam Weissman ha scritto: Hi, I am using the following technic for AJAX. Create an empty file named ajax.shtml or ajax.html and add it to your file list. Inside the file you only write one tag without anything else. For example Do not add CR or LF just the tag !!.

Re: [lwip-users] httpd: how to implement AJAX

2017-11-13 Thread Noam Weissman
m=silrd@nongnu.org] On Behalf Of Giuseppe Modugno Sent: Monday, November 13, 2017 12:43 PM To: lwip-users@nongnu.org Subject: [lwip-users] httpd: how to implement AJAX I'm trying to create a website with AJAX technology: the client polls, at regular intervals, the server with GET requests of f

[lwip-users] httpd: how to implement AJAX

2017-11-13 Thread Giuseppe Modugno
I'm trying to create a website with AJAX technology: the client polls, at regular intervals, the server with GET requests of file /status.json. The response is dynamic. I could use only LWIP_HTTPD_CUSTOM_FILES and create the file at runtime in fs_open_custom(). It works, but I can't decode