func HttpGet(url string) (int, string) {
	resp, err := http.Get(url)
	if err != nil {
		return 404, "Error: " + url + " failed for HTTP GET"
	}
	defer resp.Body.Close()
	body, _ := ioutil.ReadAll(resp.Body)
	return resp.StatusCode, string(body)
}
makes HTTP call for given URL and returns response body
package main
import (
	"flag"
	"fmt"
	"io/ioutil"
	"net/http"
	"time"
	golzmq "github.com/abhishekkr/gol/golzmq"
)
var (
	httphost         = flag.String("host", "127.0.0.1", "what Host to run at")
	httpport         = flag.Int("port", 9999, "what Socket PORT to connect")
	request_port01   = flag.Int("req-port01", 9797, "what Socket PORT to run at")
	request_port02   = flag.Int("req-port02", 9898, "what Socket PORT to run at")
	protocol         = flag.String("protocol", "zmq", "zmq||http")
	dbaction         = flag.String("axn", "push", "push||delete||read")
	zmqSock          = golzmq.ZmqRequestSocket("127.0.0.1", []int{*request_port01, *request_port02})
	expected, result string
	err              error
	daycount         = 0
	days             = []int{31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}
)
func TSDSPutURL(host string, port int, key, val, year, month, day, hr, min, sec string) string {
	return fmt.Sprintf("http://%s:%d/put?key=%s&val=%s&type=tsds&year=%s&month=%s&day=%s&hour=%s&min=%s&sec=%s",
		host, port, key, val, year, month, day, hr, min, sec)
}
func TSDSGetURL(host string, port int, key, year, month, day, hr, min, sec string) string {
	return fmt.Sprintf("http://%s:%d/get?key=%s&type=tsds&year=%s&month=%s&day=%s&hour=%s&min=%s&sec=%s",
		host, port, key, year, month, day, hr, min, sec)
}
func TSDSDelURL(host string, port int, key, year, month, day, hr, min, sec string) string {
	return fmt.Sprintf("http://%s:%d/del?key=%s&type=tsds&year=%s&month=%s&day=%s&hour=%s&min=%s&sec=%s",
		host, port, key, year, month, day, hr, min, sec)
}