Startup of a NGClient - with arguments (parameters)

Forum to discuss the new web client version of Servoy.

Startup of a NGClient - with arguments (parameters)

Postby huber » Tue Jul 12, 2016 10:08 am

Hi

I read about starting a NGClient passing arguments in the docu here: https://wiki.servoy.com/display/public/ ... yNGClients

This looks like doing it the http GET method way. Is there also a POST method way available to pass arguments to a NGClient at startup? I am asking because a common belief is that GET requests should never be used when dealing with sensitive data.
I couldn't find a POST method way of startup in the docu, but may have missed it.

Thanks and regards,
Robert
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm

Re: Startup of a NGClient - with arguments (parameters)

Postby jcompagner » Thu Nov 10, 2016 11:08 am

no this is currently not really possible.
We could first fix that you could post to that specific url (that request just returns a index.html file) but then there is a problem that the WebSocket instance that we then create also gets that url query params in it.
So the wss:/xxxx?x=y is also then going over the line, and that can't be done in a post... (there is no control over that thats just plain websocket implementation of the browser)

We could potentially change that again but that would mean quite some changes on our end and that the solution is always loaded a bit later (there has to be a fully websocket connect first and then another message has to send over after that we can start the client, so there is an extra latency added)
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Startup of a NGClient - with arguments (parameters)

Postby huber » Thu Nov 10, 2016 1:39 pm

Hi Johan

Thanks for your reply. In the meantime, we solved the described requirement by using a web service. This seems to be a better solution.
We do use the argument passing in the URL like a=1 as well.

Thanks and regards,
Robert Huber
7r AG, Switzerland
SAN Developer
http://www.seven-r.ch
User avatar
huber
 
Posts: 518
Joined: Mon May 14, 2012 11:31 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 18 guests

cron