Appengine Go cant' using http.Get?

I writing appengine by golang. I success http.Get in go, but appengine can’t using http.Get ?

response, err := http.Get(url)
if err != nil {
log.Infof(c, “error url”)
} else {
defer response.Body.Close()
contents, err := ioutil.ReadAll(response.Body)
if err != nil {
log.Infof(c, "Error read body ")
//fmt.Println(err)
}
}

What are you asking? Your own appegnine cant use http.Get function?

Indeed, you need to use urlfetch on the GAE.

2 Likes

thanks Calmh!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.