gdal icon indicating copy to clipboard operation
gdal copied to clipboard

Default User-Agent

Open drnextgis opened this issue 1 year ago • 1 comments

I know that there are some ways to set the value of User-Agent, for example:

$ GDAL_HTTP_USERAGENT="gdal/3.0.4" gdalinfo /vsicurl/https://...

But it would be nice if GDAL could have some default value for it (ideally with the version). This is how it is done in requests:

>>> from requests.utils import default_user_agent
>>> default_user_agent()
'python-requests/2.16.5'

drnextgis avatar Sep 16 '22 05:09 drnextgis

At least WMS driver sets a default User-Agent, I do not know if any other driver does.

jratike80 avatar Sep 16 '22 06:09 jratike80

Thanks!

drnextgis avatar Dec 30 '22 15:12 drnextgis