互联网上没有提到这个特定问题或解决方案,所以这里是:
doGet()我的应用程序包含以下doPost()功能:
function doGet (e){return ContentService.createTextOutput("User says: "+JSON.stringify(e))}
function doPost(e){return ContentService.createTextOutput("User says: "+JSON.stringify(e))}
GET http://*published URL*/+params返回:
User says:     
{
  "queryString":"testparamA=abc&testparamB=bcd&testparamC=cde",
  "parameter":
    {
      "testparamA":"abc",
      "testparamB":"bcd",
      "testparamC":"cde"
    },
  "contextPath":"",
  "parameters":
    {
      "testparamA":["abc"],
      "testparamB":["bcd"],
      "testparamC":["cde"]
    },
  "contentLength":-1
}
鉴于,POST http://*published URL*/+params返回:
User says:
{
  "queryString":null,
  "parameter":{},
  "contextPath":"",
  "parameters":{},
  "contentLength":0
}
我的目标是访问POST参数。POST但是在使用该方法传输时,似乎有些东西阻止了脚本获取它们。GET似乎工作得很好。
我错过了什么,解决方案是什么?

