package main
import (
"fmt"
_ "io/ioutil"
"net/http"
_ "strings"
)
func main() {
// Make HTTP request
resp, err := http.Get("ht
s://weather.com/weather/today/")
// Error handling
if err!= nil {
fmt.Println("Error sending request:", err)
return
}
defer resp.Body.Close()
// Print status code
fmt.Println("Status code:", resp.StatusCode)
}
//Can't able to get the output correctly is there anything wrong in my code
*Error sending request: Get h
://weather.com/weather/today/: dial tcp: lookup weather.com on 172.31.0.2:53: write udp 172.17.0.9:36978->172.31.0.2:53: write: operation not permitted
*
//getting this error in my console