how to retrieve web client environment information ?

3 Posts
2 Users
0 Likes
25 Views
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
Topic starter
 

Hello,

Do you know a way to retrieve some information about the environment where the web client is used ?
Such as Ip address, OS informaiton or web browser information ?
The purpose is to trigger some actions depending on the station where the web client is is used.

Thanks a lot.

 
Posted : 06/09/2022 3:31 pm
KASI
 KASI
(@k-simanjalamarcinfo-com)
Posts: 134
Estimable Member
 

Hi Brice,

I am not sure if I can answer you, but from some experiment with Edouard some time back, we saw that the display of the WebVue and some behavior (dockable or fixed toolbar), etc are determined by WebVue based on the user agent. I may be wrong, but by manually changing the user agent, we are able to see the difference like above.

So I think on each connection, this information is retrieved, and typically logged in IIS files under C:inetpublogsLogFilesW3SVCXXX, typically something like this :

2022-05-18 04:06:57 ::1 GET /favicon.ico - 443 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/101.0.4951.67+Safari/537.36  https://localhost/webvue  404 0 2 0
2022-05-18 04:14:10 192.168.19.1 GET / - 80 - 192.168.19.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/101.0.4951.67+Safari/537.36 - 200 0 0 3
2022-05-18 04:14:10 192.168.19.1 GET /iisstart.png - 80 - 192.168.19.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/101.0.4951.67+Safari/537.36  http://sibuan/  200 0 0 5
2022-05-18 04:14:10 192.168.19.1 GET /favicon.ico - 80 - 192.168.19.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/101.0.4951.67+Safari/537.36  http://sibuan/  404 0 2 1
2022-05-18 04:28:04 ::1 GET / - 443 - ::1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/101.0.4951.67+Safari/537.36 - 200 0 0 2

Maybe some SB or VBA script can be run to trail the log files and capture needed information.

Alternatively, it could be nice if this information could be retrieved through some PcVue system variables, since these information are already available during connection. So maybe a wish SPR?

Currently, SB instruction WEBVUE mode LIST is already giving id, creationtime, username, and clienttype, so maybe more information could be added in the future.

 
Posted : 06/09/2022 3:48 pm
BO
 BO
(@b-olombelarcinfo-com)
Posts: 196
Reputable Member
Topic starter
 

Thanks Kantha.

I will create a SPR.

 
Posted : 06/09/2022 8:39 pm