wget - Wget 中的默认用户代理

标签 wget user-agent

如果我从命令行使用 wget 而不指定显式用户代理,我想知道传递的默认用户代理是什么。

我有一些基于用户代理更改输出的代码。

wget http://www.google.com -O test.html

最佳答案

“wget -d”将显示向服务器发出的请求。

$ wget -d http://www.google.com -O/dev/null 2>&1 |grep ^User-Agent
User-Agent: Wget/1.13.4 (linux-gnu)
User-Agent: Wget/1.13.4 (linux-gnu)
User-Agent: Wget/1.13.4 (linux-gnu)

关于wget - Wget 中的默认用户代理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3871809/

相关文章:

amazon-web-services - AWS CloudFront 如何检测移动设备

linux - 无法从 linux 终端获取文件

linux - 使用 xargs 和两个参数并行下载

android - 从用户代理获取 Android 操作系统版本

asp.net - 我可以修改Request.Headers集合吗?

internet-explorer - IE 10 的用户代理字符串末尾的 6 个字符是什么?

java - 有人用过UADetector吗?

https - 在 Cygwin 中对 HTTPS URL 运行 wget 时如何修复证书错误?

bash - 为什么 wget 给我两个不同的总下载时间?

linux - wget 和 htaccess : username only