简体   繁体   English

如何在现代浏览器中跟踪/分析地理位置请求?

[英]How to track/analyze GeoLocation requests in modern browsers?

Modern browsers such as Firefox and Google Chrome offer a javascript API that, upon the users permission, can detect and share the user's location coordinates with the web server. 诸如Firefox和Google Chrome之类的现代浏览器提供了javascript API,经用户许可,可以检测并与Web服务器共享用户的位置坐标。 But to do this, it has to make an additional HTTP or other network request to a web service. 但是要这样做, 它必须向 Web服务发出附加的HTTP或其他网络请求 Is there an easy way to inspect this request for troubleshooting purposes? 有没有简便的方法可以检查此请求以进行故障排除? To see what is being sent, to where, and how long it is taking. 查看发送的内容,发送到的位置以及花费的时间。

It does not show up in Firebug or the Web Inspector. 它不会显示在Firebug或Web检查器中。

Each browser engine works using its own logic. 每个浏览器引擎都使用自己的逻辑进行工作。 The validated fonctionnality, common to everyone , is delivered with a lot of features (success, errors callback, watch, etc...) that can help you to troubleshoot it properly. 经过验证的功能对每个人都通用 ,具有许多功能(成功,错误回调,监视等),可以帮助您正确地进行故障排除。

Please find below the mozilla doc about it if you want more informations. 如果您需要更多信息,请在下面的Mozilla文档中查找。

https://developer.mozilla.org/en/docs/Using_geolocation https://developer.mozilla.org/en/docs/Using_geolocation

使用数据包嗅探器实用程序来分析原始网络请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM