Tag Archives: Google Forms

Shell – String replace

Previously we talked about how to submit a Google Form by the curl command.


In the url, we have to encode the special characters such as whitespace. In shell script, we could do string replace as follow.


Continue reading Shell – String replace

Submit Google Forms by curl command

Google Forms is a very common way to collect user data nowadays. After you have created the form, you could insert it to your web site and present it with your own style.

Other than that, we could integrate Google Forms with the backend job since we could submit the form through command line. Let’s take a look on the following example.

1. Create a new form on your Google drive. The edit page url should be in the following format.

  • https://docs.google.com/forms/d/<form-id>/edit

Continue reading Submit Google Forms by curl command