Moved TemporarilyThe document has moved"-6ren"> Moved TemporarilyThe document has moved"-有谁知道如何从 PHP 调用用 Google AppScript 编写的网络应用程序? 我已经发布了我的应用程序来以我的身份运行,并让“所有人”都可以使用它。测试 url 如下所示: https://-6ren">
gpt4 book ai didi

PHP 到 Google WebApp 返回 "

Moved Temporarily

The document has moved"
转载 作者:行者123 更新时间:2023-11-27 23:55:21 25 4
gpt4 key购买 nike

有谁知道如何从 PHP 调用用 Google AppScript 编写的网络应用程序?

我已经发布了我的应用程序来以我的身份运行,并让“所有人”都可以使用它。测试 url 如下所示:

https://script.google.com/macros/s/xXxXxX/dev?Jobno=11&Pickupfrom=Aa&Deliverto=bb&Readyby=22&Deliverby=33

此链接将新记录附加到 google 电子表格中。仅当我在登录到 Google 的浏览器中手动提交该链接时,该链接才有效。如果我退出谷歌,它会将我转到登录页面。这对我来说毫无意义。我不明白为什么要强制进行身份验证。

有什么想法吗?

最佳答案

所描述的行为是一个特征:

https://developers.google.com/apps-script/guides/content#redirects

Redirects

For security reasons, content returned by the Content service isn't served from script.google.com, but instead redirected to a one-time URL at script.googleusercontent.com. This means that if you use the Content service to return data to another application, you must ensure that the HTTP client is configured to follow redirects. For example, in the cURL command line utility, add the flag -L. Check the documentation for your HTTP client for more information on how to enable this behavior.

关于PHP 到 Google WebApp 返回 "<H1>Moved Temporarily</H1>The document has moved",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24357015/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com