fork download
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "net/http"
  6. )
  7.  
  8. func main() {
  9. url := "https://m...content-available-to-author-only...z.dev" // change to your actual domain
  10.  
  11. resp, err := http.Get(url)
  12. if err != nil {
  13. fmt.Println("Request failed:", err)
  14. return
  15. }
  16. defer resp.Body.Close()
  17.  
  18. fmt.Println("Status Code:", resp.StatusCode)
  19. }
  20.  
Success #stdin #stdout 0.01s 7704KB
stdin
Standard input is empty
stdout
Request failed: Get https://m...content-available-to-author-only...z.dev: dial tcp: lookup media.abz.dev on 8.8.8.8:53: dial udp 8.8.8.8:53: connect: network is unreachable