获取 URL 时转到 headers
Go headers when fetching URLs
当我在 Python 中编写程序并使用 urllib
编写请求 post 时,我的 header 作为 Python-urllib/3.4
[= 发送到服务器13=]
使用 Go 程序访问 API 时,默认情况下向服务器发送哪些 HTTP header?
例如,如果您只执行 http.Get
,那么只需
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip
当我在 Python 中编写程序并使用 urllib
编写请求 post 时,我的 header 作为 Python-urllib/3.4
[= 发送到服务器13=]
使用 Go 程序访问 API 时,默认情况下向服务器发送哪些 HTTP header?
例如,如果您只执行 http.Get
,那么只需
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip