What do you want to save?
Add Code snippet
New code examples
-
Go 2022-03-05 05:35:03
golang http set user agent header
import "net/http" req, err := http.NewRequest("GET", "http://httpbin.org/user-agent", nil) if err != nil { log.Fatalln(err) } req.Header.Set("User-Agent", "Golang_Spider_Bot/3.0") ... Add solution -
Other 2021-10-21 16:51:04
what is port 80 used for
Port 80 is one of the most commonly used port numbers in the Transmission Control Protocol (TCP) suite. Any Web/HTTP client, such as a Web browser, uses port 80 to send and receive requested Web pages from a HTTP server. It manages all HTTP-based reques... Add solution