package main
import "fmt"
import "net/http"
import "io/ioutil"
func main() {
client := &http.Client{}
req.FormValue := "status=SHUTDOWN"
resp, _ := client.Do(req)
out, _ := ioutil.ReadAll(resp.Body)
resp.Body.Close()
fmt.Printf("%s", out)
}
Still I didn't need to know how to send the Data like "status=SHUTDOWN" or in json {"key1":value1} I only know how to make a request not how to send data.. that is my problem i know i need something with io.Reader but don't know how to make it correctly