Google apps script 在Google apps脚本中将表单提交到不同的服务器

Google apps script 在Google apps脚本中将表单提交到不同的服务器,google-apps-script,Google Apps Script,我正在按照创建表单并自动提交表单以向其他服务器发出post请求 我创造了这样的东西: return HtmlService.createHtmlOutput( "Loading.. <form action='http://xyz.com/abc' method='post' id='foo' /> <input type='hidden' name='data' value='xyz' /> <script>document.ge

我正在按照创建表单并自动提交表单以向其他服务器发出post请求

我创造了这样的东西:

return HtmlService.createHtmlOutput(
    "Loading.. <form action='http://xyz.com/abc' method='post' id='foo' />
    <input type='hidden' name='data' value='xyz' />  
    <script>document.getElementById('foo').submit(); </script>" ) 
返回HtmlService.createHtmlOutput(
“装货。。
document.getElementById('foo').submit();“”)

最初它工作正常,但现在表单不会在代码运行后立即自动提交。将显示一个空白页(带单词加载),并且没有重定向。我可以知道如何在页面加载时自动提交表单,以便将post请求发送到另一台服务器,并提供所需的数据。

现在as#1995中对此进行了跟踪。我尝试了一些变通方法,比如使用jqueryready函数、自动单击submit按钮或设置超时,但都不起作用。请将问题标记为星号,以便跟踪此问题