Using Post command through browser but ultimately google script

This topic contains quite some useful information on this:

Read through it, and definitely try out the tools mentioned in there. They'll allow you to easily test your functions and variables without having to worry about how to create certain requests. Once your code is known to be functional, you can move on to the whole POST/GET stuff.