NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: astahl on September 20, 2016, 08:25:32 AM

Title: How to get he UserAgent in WebServer proc
Post by: astahl on September 20, 2016, 08:25:32 AM
How can I get the UserAgent info in The WebServer procedure?

We are using AWS ELB and it sends a request every 2 seconds so I cannot do a prop:disconnect for my table if there is no activity.


Ashley
Title: Re: How to get he UserAgent in WebServer proc
Post by: Bruce on September 21, 2016, 03:13:12 AM
WebServer procedure, or WebHandler procedure?

the WebHandler is called "once per request" - the WebServer is just running, and there might be lots of requests open, so then which UserAgent are you looking for?

cheers
Bruce
Title: Re: How to get he UserAgent in WebServer proc
Post by: astahl on September 21, 2016, 07:26:56 AM
Hi Bruce,

I figured it out, Since I am trying to disconnect tables for the site when there is no traffic on the server. I just added a item to the app.ini file
that lets me know when no requests are coming through, it discounts the ELB requests.

BTW I was testing MS EDGE browser and I seen a 404 error because there was no edge.css in the styles folder. I just duplicate msie10.css and named it to edge.css.
Maybe should be in the next release update.

Ashley
Title: Re: How to get he UserAgent in WebServer proc
Post by: Bruce on September 28, 2016, 11:32:02 PM
>> BTW I was testing MS EDGE browser and I seen a 404 error because there was no edge.css in the styles folder. I just duplicate msie10.css and named it to edge.css. Maybe should be in the next release update.

done for 9.14