funchttpPost() { resp, err := http.Post("http://www.01happy.com/demo/accept.php", "application/x-www-form-urlencoded", strings.NewReader("name=cjb")) iferr != nil { fmt.Println(err) }
deferresp.Body.Close() body, err := ioutil.ReadAll(resp.Body) iferr != nil { // handle error }
fmt.Println(string(body)) }