NetTalk Central

Author Topic: How to get he UserAgent in WebServer proc  (Read 3867 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
How to get he UserAgent in WebServer proc
« 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to get he UserAgent in WebServer proc
« Reply #1 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

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: How to get he UserAgent in WebServer proc
« Reply #2 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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to get he UserAgent in WebServer proc
« Reply #3 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