Go HTTP

package main

import (
  "fmt"
  "io/ioutil"
  "net/http"
  "net/url"
)



func httpPostForm() {
  resp, err := http.PostForm("http://www.jianzhou.sh.cn/JianzhouSMSWSServer/http/sendBatchMessage",
    url.Values{"account": {"接口帐号"}, "password": {"接口密码"},"msgText": {"您好,您2016-12-06 11:06:04的订单已经成功支付,为尔商城不会以付款异常、卡单、系统升级为由联系您。【建周科技】"},"destmobile": {"139********"}})

  if err != nil {
    // handle error
  }

  defer resp.Body.Close()
  body, err := ioutil.ReadAll(resp.Body)
  if err != nil {
    // handle error
  }

  fmt.Println(string(body))

}



func main() {

  httpPostForm()

}