How do I check what user agent curl is using?
Try this
curl ifconfig.me/ua
However the output would be "Curl and your curl version"
for example:
curl/7.64.0
Use the --verbose
option to see all the headers sent by curl, including User-Agent
:
A line starting with '>' means "header data" sent by curl
For example:
$ curl --verbose 'http://www.google.com/'
> GET / HTTP/1.1
> User-Agent: curl/7.37.0
> Host: www.google.com
> Accept: */*