Google Apps Script: testing doPost() with cURL Google Apps Script: testing doPost() with cURL curl curl

Google Apps Script: testing doPost() with cURL


I suspect you'll need to send data.

This works (I got {"result":"POST request received!"}):

curl -H 'Content-Type: application/json' -d {} -L https://script.google.com/macros/s/AKfycbxYxgMfMkR6hGI5UO2Gn8tg369oqsy_W41-olb0Do1y8gOjaNvm/exec

As does this:

curl -d "" -L https://script.google.com/macros/s/AKfycbxYxgMfMkR6hGI5UO2Gn8tg369oqsy_W41-olb0Do1y8gOjaNvm/exec