Folks,
I am currently doing this API POST using curl command in shell script, however I want to create a Go program to make this work instead of shell script curl command. Also would like to take input from stdio for things like management IP, username, password and FirstAddress
here is the command below
You are missing to import net/url to be able to use url.Values.
Then you are using it wrong. url.Values is a map[string][]string.
Also, last but not least, the cURL invocation you have shown in the initial post is not doing a form submission, but its sending a JSON document in its body.
http.Post is probably more what you are searching.