Google Apps脚本 - 获取doPost的IP并在电子表格中追踪 [英] Google Apps Script - Get IP of doPost and track in Spreadsheet

查看:98
本文介绍了Google Apps脚本 - 获取doPost的IP并在电子表格中追踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法来捕获ad oPost(e)请求的IP,并将其与POST的传入值一起存储以跟踪请求的来源?



它似乎不可以通过 e.parameter



我无法找到 e 其他属性或方法的完整列表。

解决方案

今天没有办法在 doGet doPost中获取传入请求的IP地址或用户代理。请在我们的问题跟踪器中记录增强请求,以及用例的细节。

is there an easy way to capture the IP of a doPost(e) request and store it with the incoming values of the POST as to track the origin of the request?

It does not seem to be available via e.parameter.

I cannot find a complete list of the other properties or methods of e.

解决方案

There is no way today to get the IP Address or the User Agent of the incoming request in doGet or doPost. Please log an enhancement request in our Issue Tracker along with details of your use case.

这篇关于Google Apps脚本 - 获取doPost的IP并在电子表格中追踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆