Skip to content

Instantly share code, notes, and snippets.

@korrio
Created October 17, 2019 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korrio/95288ebc1e4c50c33a93d63950265127 to your computer and use it in GitHub Desktop.
Save korrio/95288ebc1e4c50c33a93d63950265127 to your computer and use it in GitHub Desktop.
form.js
var request = require("request");
var options = { method: 'POST',
url: 'https://docs.google.com/forms/d/e/1FAIpQLScBMroTKKbtZyPCoq3E6-B0Lb5T1xZjCkWFkCKUUfXUyAtKww/formResponse',
headers:
{ 'postman-token': 'c76b2ee5-ecc0-2152-dd3f-b7229ef67ac4',
'cache-control': 'no-cache',
'x-chrome-connected': 'id=113128144948758807411,mode=0,enable_account_consistency=false,consistency_enabled_by_default=false',
accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'sec-fetch-user': '?1',
'sec-fetch-mode': 'navigate',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36',
'content-type': 'application/x-www-form-urlencoded',
'upgrade-insecure-requests': '1',
origin: 'https://docs.google.com' },
form: {} };
request(options, function (error, response, body) {
if (error) throw new Error(error);
console.log(body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment