zproxy/http/miss.go

22 lines
333 B
Go
Raw Normal View History

2024-02-13 19:45:15 +08:00
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
resp, err := http.Get("https://zh.xhamster.com/?ref=porndude")
if err != nil {
fmt.Println("http get error", err)
return
}
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println("read error", err)
return
}
fmt.Println(string(body))
}