http - wget 会自动发送哪些 header ?

标签 http http-headers wget

我知道您可以使用 --header 选项手动设置一些 header ,但我想知道它在没有交互的情况下发送哪些 header 。

最佳答案

使用 -d (--debug) 选项我看到它设置了:

---request begin---
GET / HTTP/1.0
User-Agent: Wget/1.12 (cygwin)
Accept: */*
Host: www.uml.edu
Connection: Keep-Alive

---request end---

关于http - wget 会自动发送哪些 header ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6905357/

相关文章:

http - RESTful 服务必须始终基于 HTTP 吗?

python - “urllib.error.HTTPError: HTTP Error 404: Not Found” Python

javascript - 使用 jQuery/JS 检查图像 HTTP 状态代码?

linux - 无法通过 wget 传递变量内带有引号的变量

http - Logstash配置: http output with Base 64 encoded headers

.net - request.GetResponse() 在头最后修改包含 "Fri, 20 Nov 2009 15:53:16 E. Australia Standard Time"时给出 ProtocolViolationException

android - Http 中断/parial 文件下载 - Android/iPhone 上的 HTTP "Range" header

linux - 故障安全 wget html 脚本? (当用户使用 ~\.wgetrc 时)

python - PDF 打印受密码保护的页面(最好让 wkhtmltopdf 使用 cookie)

angular - HttpParams 设置为空