Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 GAE 上运行的 servlet,我有一个 cron 作业,它偶尔会访问这个 servlet。有没有办法区分来自外部的请求和来自 cron 作业的请求,以便我可以根据请求的来源执行不同的操作?
当请求来自 Cron 服务时,它有一个特殊的HTTP 标头:
X-AppEngine-Cron: true