You can use os.Getenv to retrieve environment variables and os.Args to retrieve arguments given on the command line.
os.Getenv
os.Args
Also there is the net/http package which gives you a full HTTP(S) client which you can use to actually issue the request.
net/http